Skip to content

Commit 4a7758e

Browse files
Update Sonatype destination URLs as old ones have been deprecated
See: https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/
1 parent a400a00 commit 4a7758e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
v0.76.3
22

3+
- Update Java publishing job to use new endpoint for Maven Central uploads.

java/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ nexusPublishing {
130130
sonatype {
131131
username = project.findProperty('sonatypeUsername') ?: ""
132132
password = project.findProperty('sonatypePassword') ?: ""
133+
// This is the recommended configuration from the README for the plugin we use, gradle-nexus/publish-plugin.
134+
// The URLs are from https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
135+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
136+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
133137
}
134138
}
135139
}

0 commit comments

Comments
 (0)