From 21a8b468371a0f502f9a9af8619e06e31fcbaeb0 Mon Sep 17 00:00:00 2001 From: Robert Stupp Date: Wed, 30 Apr 2025 20:29:03 +0200 Subject: [PATCH] Update Sonatype publishing URLs 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. --- build.gradle.kts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9dad6b4e..d0004a32 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -46,7 +46,13 @@ nexusPublishing { // default 10s delayBetween.set(java.time.Duration.ofSeconds(10)) } - repositories { sonatype() } + repositories { + // see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration + sonatype { + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) + } + } } val buildToolIntegrationGradle by