Skip to content

fix: migrate publishing from OSSRH to Central Publisher Portal#2932

Merged
bjagg merged 1 commit into
uPortal-Project:masterfrom
bjagg:fix/sonatype-central-portal-migration
Apr 1, 2026
Merged

fix: migrate publishing from OSSRH to Central Publisher Portal#2932
bjagg merged 1 commit into
uPortal-Project:masterfrom
bjagg:fix/sonatype-central-portal-migration

Conversation

@bjagg

@bjagg bjagg commented Apr 1, 2026

Copy link
Copy Markdown
Member
Checklist
Description of change

OSSRH (oss.sonatype.org) was sunset June 2025. The ./gradlew release task fails because the default publishing URLs are dead.

build.gradle changes:

  • Release repo URL: oss.sonatype.org/service/local/staging/deploy/maven2/ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/
  • Snapshot repo URL: oss.sonatype.org/content/repositories/snapshots/central.sonatype.com/repository/maven-snapshots/
  • This uses the OSSRH Staging API compatibility service, which translates existing Nexus 2 API calls to the new Portal API — no plugin changes needed.

RELEASE.md changes:

  • Updated prerequisites to reference Central Publisher Portal
  • Updated credentials section: must use Portal user tokens (not OSSRH credentials)
  • Updated "Close and Release" section for the new portal workflow
  • Updated keyserver from defunct pool.sks-keyservers.net to keyserver.ubuntu.com
  • Updated reference links

Existing ossrhUrl/ossrhUrlSnapshot property overrides still work for anyone needing custom endpoints.

OSSRH (oss.sonatype.org) was sunset June 2025. Update default
publishing URLs to use the Central Portal's OSSRH Staging API
compatibility service, which translates the existing Nexus 2 API
calls to the new Portal API.

- Release repo: ossrh-staging-api.central.sonatype.com
- Snapshot repo: central.sonatype.com/repository/maven-snapshots/
- Update RELEASE.md with new portal instructions, token auth,
  and updated references

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bjagg bjagg requested review from ChristianMurphy and Naenyn April 1, 2026 00:49
@bjagg bjagg self-assigned this Apr 1, 2026
@bjagg bjagg merged commit ceaac28 into uPortal-Project:master Apr 1, 2026
5 checks passed
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.

2 participants