🌐 AI搜索 & 代理 主页
Skip to content

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

@github-actions
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
@dondonz dondonz added this to the 25.x breaking changes milestone Jul 20, 2025
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.

3 participants