Skip to content

fix(release): close the staging repository so the deployment reaches the Central Portal - #1029

Merged
jbachorik merged 1 commit into
developfrom
claude/amazing-fermat-9u5o7j
Nov 17, 2026
Merged

jbachorik merged 1 commit into
developfrom
claude/amazing-fermat-9u5o7j

Conversation

@jbachorik

@jbachorik jbachorik commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

What does this change do?

The 3.0.0-RC1 release run (run 25) staged all nine components (io.btrace:btrace and 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 Central step now also runs closeSonatypeStagingRepository (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.md describes the close.

Related issue

N/A. Found by the 3.0.0-RC1 release run (run 25).

Scope and compatibility

  • I identified the affected module(s) and kept unrelated changes out of this PR.
  • This preserves the supported Java/runtime compatibility tiers, or the change is documented below.
  • This does not change the masked-JAR layout, class-loader boundary, or wire protocol.
  • If it does, I updated the relevant architecture documentation and verification plan.

Compatibility or migration notes: release workflow only.

Testing

  • Unit tests (no code change)
  • Integration tests (no code change)
  • spotlessCheck (not affected)
  • Documentation/link or sample verification (if applicable)

Commands and results:

./gradlew tasks --all | grep -i closeSonatype
  -> closeSonatypeStagingRepository - Closes open staging repository in 'sonatype' Nexus instance.
version=3.0.0-RC1, SONATYPE_USER/SONATYPE_PASSWORD set to dummies:
./gradlew :btrace-dist:publishAllPublicationsToSonatypeRepository publishReleaseExtensionsToSonatype closeSonatypeStagingRepository --dry-run
  -> :initializeSonatypeStagingRepository first, then all nine ...ToSonatypeRepository tasks,
     :publishReleaseExtensionsToSonatype, and :closeSonatypeStagingRepository last
python3 -c "import yaml; yaml.safe_load(open('.github/workflows/release.yml'))"   -> parses
python3 scripts/guardrails/check_agent_config.py / check_doc_commands.py / check_doc_versions.py -> OK

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

  • User-facing documentation is updated, or no documentation change is needed.
  • Release notes/changelog are updated, or no release-note entry is needed.
  • Samples, distribution contents, or published coordinates are updated if affected.
  • This change is safe to merge independently of a release, or the dependency is explained below.

Release notes / follow-up work:

  • Before re-running RC1, delete the leftover internal tag v3.0.0-RC1_RC; the release validation refuses to start while it exists.
  • The abandoned open staging repository io.btrace--8d0e4766-... was never published. It can be dropped, or left to expire.

Final checklist

  • I reviewed the complete diff and removed unrelated changes.
  • New or changed behavior has appropriate tests, or the reason for not adding them is explained above.
  • User-facing behavior, APIs, samples, and documentation are consistent with this change.
  • I did not include generated build output, local configuration, credentials, or other accidental files.

Generated by Claude Code


This change is Reviewable

…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
@jbachorik
jbachorik merged commit 0d3e489 into develop Nov 17, 2026
22 checks passed
@jbachorik
jbachorik deleted the claude/amazing-fermat-9u5o7j branch November 17, 2026 10:55
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