Skip to content

Commit c8703ab

Browse files
authored
Update Sonatype publishing URLs (#678)
The OSSRH service will reach end-of-life on June 30th, 2025. All publications will move to the "Central Portal" before that date. This change updates the Nexus configuration according to [this sonatype page](https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration). Requires changes to the secrets.
1 parent 27f34ed commit c8703ab

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ nexusPublishing {
4646
// default 10s
4747
delayBetween.set(java.time.Duration.ofSeconds(10))
4848
}
49-
repositories { sonatype() }
49+
repositories {
50+
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
51+
sonatype {
52+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
53+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
54+
}
55+
}
5056
}
5157

5258
val buildToolIntegrationGradle by

0 commit comments

Comments
 (0)