Skip to content

Migrate from OSSRH to Sonatype Central Portal#1290

Merged
velo merged 2 commits intomasterfrom
ossrh-eol-migration
Jul 24, 2025
Merged

Migrate from OSSRH to Sonatype Central Portal#1290
velo merged 2 commits intomasterfrom
ossrh-eol-migration

Conversation

@velo
Copy link
Member

@velo velo commented Jul 21, 2025

Summary

  • Migrates Maven publishing configuration from OSSRH to Sonatype Central Portal
  • Updates nexus-staging-maven-plugin to central-publishing-maven-plugin
  • Updates distribution management URLs to use Central Portal endpoints
  • Updates CI authentication settings for Central Portal

Background

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

  • pom.xml:
    • Replaced distributionManagement URLs with Central Portal endpoints
    • Updated staging profile to use central-publishing-maven-plugin v0.8.0
    • Configured auto-publish and wait-until-published settings
  • .circleci/settings.xml:
    • Updated server ID from ossrh to central
    • Changed environment variables to CENTRAL_TOKEN_USERNAME and CENTRAL_TOKEN_PASSWORD

Test Plan

  • Update CircleCI environment variables to use Central Portal tokens
  • Test snapshot deployment on a feature branch
  • Test release deployment process
  • Verify published artifacts appear correctly in Maven Central

Migration Notes

After merging this PR, you'll need to:

  1. Create user tokens in Central Portal
  2. Update CircleCI environment variables:
    • CENTRAL_TOKEN_USERNAME (replace SONATYPE_USER)
    • CENTRAL_TOKEN_PASSWORD (replace SONATYPE_PASSWORD)
  3. Keep existing GPG_PASSPHRASE variable unchanged

🤖 Generated with Claude Code

@velo velo force-pushed the ossrh-eol-migration branch from 220bc06 to 401c4fa Compare July 21, 2025 13:18
@codecov
Copy link

codecov bot commented Jul 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (a99d56a) to head (a4da173).
Report is 1 commits behind head on master.

✅ 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.
📢 Have feedback on the report? Share it here.

@velo velo enabled auto-merge (squash) July 24, 2025 11:11
velo and others added 2 commits July 24, 2025 08:11
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
@velo velo force-pushed the ossrh-eol-migration branch from 8d02efd to a4da173 Compare July 24, 2025 11:11
@velo velo disabled auto-merge July 24, 2025 11:13
@velo velo merged commit 6e5cf7a into master Jul 24, 2025
6 checks passed
@velo velo deleted the ossrh-eol-migration branch July 24, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments