Migrate from OSSRH to Sonatype Central Portal#1290
Merged
Conversation
220bc06 to
401c4fa
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #1290 +/- ##
=======================================
Coverage 0.00% 0.00%
=======================================
Files 812 837 +25
Lines 31138 31468 +330
Branches 3531 3539 +8
=======================================
- Misses 31138 31468 +330 ☔ View full report in Codecov by Sentry. |
Update Maven publishing configuration to use Central Portal APIs ahead of OSSRH sunset on June 30, 2025: - Replace nexus-staging-maven-plugin with central-publishing-maven-plugin - Update distribution management URLs to use Central Portal endpoints - Update CI settings.xml to use new Central Portal authentication This migration ensures continued publishing capability after OSSRH EOL. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Change context from 'Sonatype' to 'central' for both snapshot and release deployments - This matches the CircleCI context containing CENTRAL_TOKEN_USERNAME and CENTRAL_TOKEN_PASSWORD
8d02efd to
a4da173
Compare
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
nexus-staging-maven-plugintocentral-publishing-maven-pluginBackground
OSSRH (OSS Repository Hosting) will be sunset on June 30, 2025. All projects must migrate to the new Sonatype Central Portal before this date to continue publishing to Maven Central.
Changes Made
distributionManagementURLs with Central Portal endpointsstagingprofile to usecentral-publishing-maven-pluginv0.8.0ossrhtocentralCENTRAL_TOKEN_USERNAMEandCENTRAL_TOKEN_PASSWORDTest Plan
Migration Notes
After merging this PR, you'll need to:
CENTRAL_TOKEN_USERNAME(replaceSONATYPE_USER)CENTRAL_TOKEN_PASSWORD(replaceSONATYPE_PASSWORD)GPG_PASSPHRASEvariable unchanged🤖 Generated with Claude Code