Skip to content

Commit a37160e

Browse files
committed
Publish to Central Publisher Portal instead
1 parent 3a918a0 commit a37160e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
OSSATUBER_PASSWORD: ${{ secrets.OSSATUBER_PASSWORD }}
5454
OSSATUBER_USERNAME: ${{ secrets.OSSATUBER_USERNAME }}
5555
run: | # TODO old way of setting the properties from environment variables in gradle
56-
./gradlew publishToSonatype closeSonatypeStagingRepository --info \
56+
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info \
5757
-Psigning.keyId="${SIGNING_KEY_ID}" \
5858
-Psigning.password="${SIGNING_PASSWORD}" \
5959
-Psigning.key="${SIGNING_KEY}" \

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ plugins {
1616
}
1717

1818
ext {
19-
ossrhUsername = findProperty('ossrhUsername')
20-
ossrhPassword = findProperty('ossrhPassword')
19+
ossrhUsername = '3uhYEz5A' // findProperty('ossrhUsername')
20+
ossrhPassword = 'NB/6bLzclMRDaD+2915KORC/pzQjd9sHNaT9f/Xw3oZs' // findProperty('ossrhPassword')
2121
signingKeyId = findProperty('signing.keyId')
2222
signingKey = findProperty('signing.key')
2323
signingPassword = findProperty('signing.password')
@@ -299,9 +299,9 @@ publishing {
299299
password ossrhPassword
300300
}
301301
if(project.version.endsWith('-SNAPSHOT')) {
302-
url 'https://oss.sonatype.org/content/repositories/snapshots/'
302+
url 'https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/'
303303
} else {
304-
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
304+
url 'https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/'
305305
}
306306
}
307307
}
@@ -312,8 +312,8 @@ nexusPublishing {
312312
sonatype {
313313
username.set(ossrhUsername)
314314
password.set(ossrhPassword)
315-
nexusUrl.set(uri("https://oss.sonatype.org/service/local/"))
316-
snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots/"))
315+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
316+
snapshotRepositoryUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/"))
317317
}
318318
}
319319
}

0 commit comments

Comments
 (0)