Skip to content

Commit d3307e2

Browse files
committed
#7 Migrate from OSSRH to Central Portal
1 parent 76a2c40 commit d3307e2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ group 'org.firebirdsql'
1919
version '2.0.1-SNAPSHOT'
2020

2121
ext.'signing.password' = credentials.forKey('signing.password')
22-
ext.ossrhPassword = credentials.forKey('ossrhPassword')
22+
ext.centralPassword = credentials.forKey('centralPassword')
2323

2424
ext.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

168168
tasks.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
}

devdoc/deploy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ a `<homedir>/.gradle/gradle.properties` with the following properties:
1818
signing.keyId=<gpg key id>
1919
signing.secretKeyRingFile=<path to your secring.gpg>
2020
21-
ossrhUsername=<sonatype OSSRH username>
21+
centralUsername=<Central Portal usertoken name>
2222
```
2323

2424
In 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

3131
See https://github.com/etiennestuder/gradle-credentials-plugin for details on

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
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/

0 commit comments

Comments
 (0)