File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3636
3737 # Runs upload, and then closes & releases the repository
3838 - name : Publish to MavenCentral
39- run : ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --max-workers 1
39+ run : ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --max-workers 1 -PossrhUsernameV2=$OSSRH_USERNAME_V2 -PossrhPasswordV2=$OSSRH_PASSWORD_V2
4040 env :
4141 OSSRH_USERNAME_V2 : ${{ secrets.OSSRH_USERNAME_V2 }}
4242 OSSRH_PASSWORD_V2 : ${{ secrets.OSSRH_PASSWORD_V2 }}
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ nexusPublishing {
2828 sonatype {
2929 nexusUrl. set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
3030 snapshotRepositoryUrl. set(uri(" https://central.sonatype.com/repository/maven-snapshots/" ))
31- username. set(providers. environmentVariable( ' OSSRH_USERNAME_V2 ' ))
32- password. set(providers. environmentVariable( ' OSSRH_PASSWORD_V2 ' ))
31+ username. set(providers. gradleProperty( ' ossrhUsernameV2 ' ))
32+ password. set(providers. gradleProperty( ' ossrhPasswordV2 ' ))
3333 }
3434 }
3535}
You can’t perform that action at this time.
0 commit comments