File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 - name : Publish
2424 run : |
2525 chmod +x gradlew
26- ./gradlew uploadArchives closeAndReleaseRepository
26+ ./gradlew publish closeAndReleaseRepository
2727 env :
2828 ORG_GRADLE_PROJECT_nexusUsername : ${{ secrets.NEXUS_USERNAME }}
2929 ORG_GRADLE_PROJECT_nexusPassword : ${{ secrets.NEXUS_PASSWORD }}
Original file line number Diff line number Diff line change @@ -152,16 +152,17 @@ publishing {
152152 url = version. endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
153153
154154 credentials {
155- username = project. hasProperty (' nexusUsername' ) ? project . getProperty( ' nexusUsername ' ) : ' '
156- password = project. hasProperty (' nexusPassword' ) ? project . getProperty( ' nexusPassword ' ) : ' '
155+ username = project. findProperty (' nexusUsername' ) ?: ' '
156+ password = project. findProperty (' nexusPassword' ) ?: ' '
157157 }
158158 }
159159 }
160160}
161161
162162signing {
163- def signingKey = project. hasProperty(' signingKey' ) ? project. getProperty(' signingKey' ) : ' '
164- def signingPassword = project. hasProperty(' signingPassword' ) ? project. getProperty(' signingPassword' ) : ' '
163+ def signingKey = project. findProperty(' signingKey' ) ?: ' '
164+ def signingPassword = project. findProperty(' signingPassword' ) ?: ' '
165+
165166 useInMemoryPgpKeys(signingKey, signingPassword)
166167
167168 sign publishing. publications. mavenJava
You can’t perform that action at this time.
0 commit comments