Skip to content

Commit 63a19b4

Browse files
authored
Publish to Central Publisher Portal instead (#1012)
What changed? point API to the new central publisher portal change github release action to directly release Why? deprecation of old nexus portal How did you test it? locally uploaded (see https://central.sonatype.com/artifact/com.uber.cadence/cadence-client/3.12.8-rc.1)
1 parent 3a918a0 commit 63a19b4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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)