Skip to content

Conversation

mbroshi-stripe
Copy link
Contributor

Why?

On June 30, 2025, the OSSRH publishing service run by Sonatype will be sunset: https://central.sonatype.org/publish/publish-guide/.

As part of their migration guide, we need to update the endpoints we use are part of publishing through Gradle: https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration.

What?

  • Updates the hostnames in the Gradle publish enpoint from oss.sonatype.org to ossrh-staging-api.central.sonatype.com.

See Also

@mbroshi-stripe mbroshi-stripe requested a review from a team as a code owner June 26, 2025 00:53
@mbroshi-stripe mbroshi-stripe requested review from xavdid-stripe and removed request for a team June 26, 2025 00:53
Copy link
Member

@xavdid-stripe xavdid-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's interesting that it's a staging API! It's in their docs so I assume it's what they want, but I would have assumed like, a v2 or something.

Either way, thanks for grabbing!

@mbroshi-stripe
Copy link
Contributor Author

mbroshi-stripe commented Jun 26, 2025

It's interesting that it's a staging API! It's in their docs so I assume it's what they want, but I would have assumed like, a v2 or something.

It is interesting! From what I can tell, the "official" endpoint doesn't support Gradle:

Currently, there is no official Gradle plugin for publishing to Maven Central via the Central Publishing Portal. We have received significant feedback that publishing via Gradle is important to the community so we wanted to communicate that Gradle support is on our roadmap.

So, I think this "staging" endpoint is a stopgap for the migration. From https://central.sonatype.org/publish/publish-portal-ossrh-staging-api:

The Portal OSSRH Staging API is a partial reimplementation of the OSSRH / Nexus Repository Manager 2 Staging APIs. The intent of this service is to enable publishers who are using existing plugins to have a smooth migration to the Central Publisher Portal. We hope that over time plugins will adopt the Portal API rather than rely on this service.

@mbroshi-stripe mbroshi-stripe merged commit e8f127e into master Jun 26, 2025
13 checks passed
@mbroshi-stripe mbroshi-stripe deleted the mbroshi/migrate-sonatype branch June 26, 2025 12:21
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