Skip to content

Migrate from OSSRH to Central Publisher Portal #2962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2025

Conversation

velo
Copy link
Member

@velo velo commented Jul 21, 2025

Summary

  • Migrate publishing infrastructure from OSSRH to Sonatype Central Publisher Portal to address the OSSRH sunset deadline (June 30th, 2025)
  • Replace nexus-staging-maven-plugin with central-publishing-maven-plugin for modern publishing workflow
  • Update GitHub Actions environment variables and Maven server configuration

Changes Made

  • Maven Configuration: Replace nexus-staging-maven-plugin with central-publishing-maven-plugin v0.8.0
  • Distribution Management: Update URLs from OSSRH endpoints to Central Publisher Portal API
  • Auto-publishing: Configure immediate publishing with autoPublish=true and waitUntil=published
  • GitHub Actions: Update environment variables from SONATYPE_* to CENTRAL_TOKEN_*
  • Maven Settings: Update server configuration from ossrh to central server ID

Required Actions Before Merge

  1. Create account at https://central.sonatype.com
  2. Generate publishing tokens in Central Portal
  3. Update GitHub Secrets:
    • Add CENTRAL_TOKEN_USERNAME (replace SONATYPE_USER)
    • Add CENTRAL_TOKEN_PASSWORD (replace SONATYPE_PASSWORD)
  4. Verify io.github.openfeign namespace is registered in Central Portal

Test Plan

  • Verify Maven configuration compiles without errors
  • Test publishing workflow in staging environment
  • Confirm artifacts appear correctly in Central Portal
  • Validate auto-publishing functionality works as expected

🤖 Generated with Claude Code

@velo velo force-pushed the migrate-to-central-publisher-portal branch from 09533fa to 042275b Compare July 24, 2025 11:10
@velo velo enabled auto-merge (squash) July 24, 2025 11:10
@velo velo disabled auto-merge July 24, 2025 11:13
- Replace nexus-staging-maven-plugin with central-publishing-maven-plugin
- Update distributionManagement URLs to Central Publisher Portal endpoints
- Configure auto-publishing with waitUntil=published for immediate release
- Update GitHub Actions to use CENTRAL_TOKEN_* environment variables
- Update Maven settings.xml server configuration for Central Portal

This addresses the OSSRH sunset deadline of June 30th, 2025.

Signed-off-by: Marvin Froeder <[email protected]>
@velo velo force-pushed the migrate-to-central-publisher-portal branch from 042275b to 20eb72e Compare July 24, 2025 11:20
Signed-off-by: Marvin Froeder <[email protected]>
@velo velo merged commit 5ef99ef into master Jul 24, 2025
3 checks passed
@velo velo deleted the migrate-to-central-publisher-portal branch July 24, 2025 11:35
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