File tree Expand file tree Collapse file tree 4 files changed +49
-8
lines changed Expand file tree Collapse file tree 4 files changed +49
-8
lines changed Original file line number Diff line number Diff line change 3333 - name : Build with Gradle
34343535 with :
36- arguments : build check
36+ arguments : check
3737 # arguments: build check publish
3838 env :
39- ossrhUsername : ${{ secrets.OSSRH_USERNAME }}
40- ossrhPassword : ${{ secrets.OSSRH_TOKEN }}
39+ ossrhUsername : ${{ secrets.OSSRHPASSWORD }}
40+ ossrhPassword : ${{ secrets.OSSRHUSERNAME }}
Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+ name : Java CI with Gradle
9+
10+ on :
11+ push :
12+ branches : [ "master" ]
13+
14+ permissions :
15+ contents : read
16+
17+ jobs :
18+ build :
19+
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - uses : actions/checkout@v4
24+ with :
25+ fetch-depth : 0
26+ - name : Set up JDK 11
27+ uses : actions/setup-java@v3
28+ with :
29+ java-version : ' 11'
30+ distribution : ' temurin'
31+ - name : Build with Gradle
32+ 33+ with :
34+ arguments : publish
35+ # arguments: build check publish
36+ env :
37+ ossrhUsername : ${{ secrets.OSSRHPASSWORD }}
38+ ossrhPassword : ${{ secrets.OSSRHUSERNAME }}
Original file line number Diff line number Diff line change 1- # [ JSqlParser 4.7 Website] ( https://jsqlparser.github.io/JSqlParser ) <img src =" src/site/sphinx/_images/logo-no-background.svg " alt =" drawing " width =" 200 " align =" right " />
1+ # [ JSqlParser 4.8 Website] ( https://jsqlparser.github.io/JSqlParser ) <img src =" src/site/sphinx/_images/logo-no-background.svg " alt =" drawing " width =" 200 " align =" right " />
22
33![ Build Status] ( https://github.com/JSQLParser/JSqlParser/actions/workflows/maven.yml/badge.svg )
44
Original file line number Diff line number Diff line change @@ -544,10 +544,9 @@ publishing {
544544 def releasesRepoUrl = " https://oss.sonatype.org/content/repositories/snapshots"
545545 def snapshotsRepoUrl= " https://oss.sonatype.org/service/local/staging/deploy/maven2"
546546 url = version. endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
547- // credentials(PasswordCredentials)
548547 credentials {
549- username = System . getenv(" ossrhUsername " )
550- password = System . getenv(" ossrhPassword " )
548+ username = System . getenv(" OSSRHPASSWORD " )
549+ password = System . getenv(" OSSRHUSERNAME " )
551550 }
552551 }
553552// maven {
@@ -563,7 +562,11 @@ signing {
563562 // def signingKey = findProperty("signingKey")
564563 // def signingPassword = findProperty("signingPassword")
565564 // useInMemoryPgpKeys(signingKey, signingPassword)
566- sign publishing. publications. mavenJava
565+
566+ // don't sign SNAPSHOTS
567+ if (! version. endsWith(' SNAPSHOT' )) {
568+ sign publishing. publications. mavenJava
569+ }
567570}
568571
569572tasks. withType(JavaCompile ). configureEach {
You can’t perform that action at this time.
0 commit comments