Skip to content

Commit 577c399

Browse files
committed
chore: update Sonatype URLs in build script for publishing
1 parent 7baaa89 commit 577c399

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ plugins {
77

88
nexusPublishing {
99
repositories {
10+
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
1011
sonatype {
11-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
12-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
12+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
13+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
1314
val ossrhUsername = providers.environmentVariable("OSSRH_USERNAME")
1415
val ossrhPassword = providers.environmentVariable("OSSRH_PASSWORD")
1516
if (ossrhUsername.isPresent && ossrhPassword.isPresent) {

0 commit comments

Comments
 (0)