From 5d9ec79b06e5f7dee7453c3f0c3105d60df575cb Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Mar 2026 05:35:58 +0000 Subject: [PATCH] Migrate Maven publishing from legacy OSSRH to Central Portal Sonatype's legacy OSSRH (s01.oss.sonatype.org) was shut down on June 30, 2025. This updates the nexus-publish-plugin configuration to use the OSSRH Staging API compatibility layer and the new Central Portal snapshot repository. NOTE: The SONATYPE_USERNAME and SONATYPE_PASSWORD GitHub secrets must be replaced with new Portal user tokens generated at https://central.sonatype.com. The old OSSRH credentials no longer work. https://claude.ai/code/session_01DwyAdQfnkFXo1GPa7LGNpm --- build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e97cbc5..bd70e04 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -101,8 +101,8 @@ tasks.register("dokkaHtml") { nexusPublishing { repositories { sonatype { - nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) - snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/repositories/snapshots/")) + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) } } }