File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ group 'org.firebirdsql'
1919version ' 2.0.1-SNAPSHOT'
2020
2121ext. ' signing.password' = credentials. forKey(' signing.password' )
22- ext. ossrhPassword = credentials. forKey(' ossrhPassword ' )
22+ ext. centralPassword = credentials. forKey(' centralPassword ' )
2323
2424ext. isReleaseVersion = provider {
2525 ! version. endsWith(" SNAPSHOT" )
@@ -158,18 +158,18 @@ publishing {
158158 maven {
159159 url = project. isReleaseVersion. get() ? project. releaseRepository : project. snapshotRepository
160160 credentials {
161- username = findProperty(' ossrhUsername ' ) ?: null
162- password = findProperty(' ossrhPassword ' ) ?: null
161+ username = findProperty(' centralUsername ' ) ?: null
162+ password = findProperty(' centralPassword ' ) ?: null
163163 }
164164 }
165165 }
166166}
167167
168168tasks. withType(PublishToMavenRepository ). each {
169169 it. doFirst {
170- if (findProperty(' ossrhUsername ' ) == null || findProperty(' ossrhPassword ' ) == null ) {
170+ if (findProperty(' centralUsername ' ) == null || findProperty(' centralPassword ' ) == null ) {
171171 throw new RuntimeException (' No credentials for publishing, make sure to specify the properties ' +
172- ' credentialsPassphrase, or ossrhUsername and ossrhPassword . See devdoc/publish.md for details.' )
172+ ' credentialsPassphrase, or centralUsername and centralPassword . See devdoc/publish.md for details.' )
173173 }
174174 }
175175}
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ a `<homedir>/.gradle/gradle.properties` with the following properties:
1818signing.keyId=<gpg key id>
1919signing.secretKeyRingFile=<path to your secring.gpg>
2020
21- ossrhUsername=<sonatype OSSRH username >
21+ centralUsername=<Central Portal usertoken name >
2222```
2323
2424In addition, you need to set the following credentials
2525
2626```
2727./gradlew addCredentials --key signing.password --value <your secret key password> -PcredentialsPassphrase=<credentials password>
28- ./gradlew addCredentials --key ossrhPassword --value <your sonatyp OSSRH password> -PcredentialsPassphrase=<credentials password>
28+ ./gradlew addCredentials --key centralPassword --value <your Central Portal usertoken password> -PcredentialsPassphrase=<credentials password>
2929```
3030
3131See https://github.com/etiennestuder/gradle-credentials-plugin for details on
Original file line number Diff line number Diff line change 11# Publish properties
2- releaseRepository =https\://oss. sonatype.org /service/local/staging/deploy/maven2/
3- snapshotRepository =https\://oss .sonatype.org/content/repositories/ snapshots/
2+ releaseRepository =https\://ossrh-staging-api.central. sonatype.com /service/local/staging/deploy/maven2/
3+ snapshotRepository =https\://central .sonatype.com/repository/maven- snapshots/
You can’t perform that action at this time.
0 commit comments