Skip to content

Add the new Sonatype URL #4009

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
Jun 15, 2025
Merged

Add the new Sonatype URL #4009

merged 2 commits into from
Jun 15, 2025

Conversation

dondonz
Copy link
Member

@dondonz dondonz commented Jun 10, 2025

Part 2 of #3956

Sonatype is changing their publishing API. We have to do 2 things before 30 June 2025, the first was to register our namespace (already done), the second is to switch over to the new URL (this PR).

Note: new auth tokens should be added before merging in this PR.

Sonatype documentation: https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration. Cross-referenced with Gradle publish plugin documentation https://github.com/gradle-nexus/publish-plugin/blob/master/README.md#publishing-to-maven-central-via-sonatype-central

From the documentation:

If you previously published via an OSSRH server, you will need to replace your OSSRH token with a Portal token. Publishing with an OSSRH token will result in 401 responses.

// https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
// GraphQL Java does not publish snapshots, but adding this URL for completeness
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
Copy link
Member Author

Choose a reason for hiding this comment

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

We didn't need to specify these URLs before, because we were using the default (and soon to be sunsetted) URLs

Copy link
Contributor

github-actions bot commented Jun 10, 2025

Test Results

  318 files    318 suites   2m 30s ⏱️
4 686 tests 4 677 ✅ 9 💤 0 ❌
4 775 runs  4 766 ✅ 9 💤 0 ❌

Results for commit 48c8941.

♻️ This comment has been updated with latest results.

@andimarek andimarek merged commit 2dc43f7 into master Jun 15, 2025
2 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