Migrate from legacy OSSRH to Sonatype Central Portal#11
Merged
johnsonlee merged 1 commit intomainfrom Feb 4, 2026
Merged
Conversation
The legacy OSSRH (oss.sonatype.org) was shut down on June 30, 2025. This migrates the plugin to use the Central Portal OSSRH Staging API compatibility layer and replaces the two deprecated plugins with the modern unified successor. - Replace de.marcphilipp.nexus-publish:0.4.0 and io.codearte.nexus-staging:0.22.0 with io.github.gradle-nexus.publish-plugin:2.0.0 - Update default server URL to ossrh-staging-api.central.sonatype.com - Add snapshot URL support for central.sonatype.com/repository/maven-snapshots - Merge configureNexusStaging + configureNexusPublish into a single unified configureNexusPublish function - Update minimum supported Gradle version to 7.4+ - Add Gradle 8.x functional tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
de.marcphilipp.nexus-publish:0.4.0andio.codearte.nexus-staging:0.22.0with unifiedio.github.gradle-nexus.publish-plugin:2.0.0oss.sonatype.orgto Central Portal compatibility layer (ossrh-staging-api.central.sonatype.com)central.sonatype.com/repository/maven-snapshots)configureNexusStaging()+configureNexusPublish()into single unified functionContext
Legacy OSSRH (
oss.sonatype.org) was shut down on June 30, 2025. All publishing must now go through the Sonatype Central Portal. This PR uses the OSSRH Staging API compatibility layer provided by Sonatype, which allows existing Nexus staging workflows to continue working with minimal changes.Note: Users must generate new tokens at central.sonatype.com — old OSSRH credentials no longer work.
Test plan
compileKotlinpassespublishToMavenLocalworks with Gradle 7.4+publishToSonatype+closeAndReleaseSonatypeStagingRepositoryworks with Central Portal tokens🤖 Generated with Claude Code