Repository navigation
fix(release): close the staging repository so the deployment reaches the Central Portal - #1029
Merged
Merged
Conversation
…the Central Portal The 3.0.0-RC1 run staged all nine components into an OSSRH Staging API repository (io.btrace--8d0e4766-...) and then waited for a deployment that never appeared: the repository was never closed. Sonatype: "A repository is uploaded to the Central Publisher Portal once the repository is closed" (https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/). Run closeSonatypeStagingRepository (gradle-nexus publish-plugin 2.0.0) in the same invocation as the uploads, so it closes the repository that invocation initialized. It closes without releasing; publishing stays the manual Portal step the workflow waits for. A --dry-run at version 3.0.0-RC1 orders it after all nine ...ToSonatypeRepository tasks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qr5KuiEbTbQMuGQTUU4FhF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change do?
The 3.0.0-RC1 release run (run 25) staged all nine components (
io.btrace:btraceand the eight extensions, signed, with sources and javadoc) into an OSSRH Staging API repository,io.btrace--8d0e4766-fe2e-4f3e-ba1f-5055728eae62. It then waited 30 minutes for a Central Portal deployment that never appeared. The staging repository was never closed, and Sonatype's documentation says: "A repository is uploaded to the Central Publisher Portal once the repository is closed" (https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/).The
Stage to Maven Centralstep now also runscloseSonatypeStagingRepository(gradle-nexus publish-plugin 2.0.0). It runs in the same Gradle invocation as the uploads, so it closes the repository that invocation initialized. It closes without releasing; publishing stays the manual Portal step the workflow waits for.docs/releasing.mddescribes the close.Related issue
N/A. Found by the 3.0.0-RC1 release run (run 25).
Scope and compatibility
Compatibility or migration notes: release workflow only.
Testing
spotlessCheck(not affected)Commands and results:
Not verified: the close against the real OSSRH Staging API. That needs the release credentials, so the next RC1 run is the check.
Documentation and release impact
Release notes / follow-up work:
v3.0.0-RC1_RC; the release validation refuses to start while it exists.io.btrace--8d0e4766-...was never published. It can be dropped, or left to expire.Final checklist
Generated by Claude Code
This change is