Repository navigation
ci: publish to Maven Central through the Central Portal - #287
Merged
Merged
Conversation
oss.sonatype.org no longer accepts uploads. Releases are staged locally, zipped by the centralBundle task and uploaded through the Central Publisher API; snapshots go to the Central Portal snapshot repository. Credentials and the signing key come from the 'Maven Central' context. Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
HuiJun
approved these changes
Nov 17, 2026
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.
Summary
oss.sonatype.orgno longer accepts uploads:deploy_snapshotfails ondevelopwith HTTP 405, and the tag-triggereddeploy_releasetargets the same host. This moves both jobs to the Central Portal, using the organization'sMaven CentralCircleCI context (CENTRAL_TOKEN_USERNAME,CENTRAL_TOKEN_PASSWORD,GPG_PRIVATE_KEY,GPG_PASSPHRASE) in place of the project-levelOSSRH_*andSIGNING_*variables.build.gradlehttps://central.sonatype.com/repository/maven-snapshots/with-PcentralUsername/-PcentralPassword.-PbuildTag=<version>) publish every module intobuild/central-staging. The new root taskcentralBundlezips that directory intobuild/central/central-bundle.zip, the deployment bundle the Central Publisher API takes. No publishing plugin is added..circleci/config.ymldeploy_releaseruns everything that can fail before the upload, because a Central version cannot be replaced:.pomhas a.pom.asc;publishingType=AUTOMATICand poll until the deployment isPUBLISHED(fails onFAILEDor after 30 minutes).ORG_GRADLE_PROJECT_signingKey, not the command line.context: Maven Central.Verification
./gradlew -PbuildTag=4.0.20 cleanCentralStaging centralBundlewith a throwaway GPG key produces a bundle with all 23 modules; each has a jar, sources jar, javadoc jar, pom, checksums and signatures, and the signatures verify withgpg --verify.circleci config validatepasses.develop, release branches and tags, so they do not run on this PR.Before relying on it
Maven Centralcontext must be usable by this project and by whoever pushes the tag.deploy_snapshotneeds snapshot publishing enabled for theorg.openmbeenamespace in the Central Portal; otherwise it keeps failing ondevelop.Link to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/d9f10869eb3d4b268da3834fb1b42689
Open in Devin Desktop: https://nasa-jpl-demo.devinenterprise.com/desktop/session/d9f10869eb3d4b268da3834fb1b42689?variant=devin
Requested by: @HuiJun
🟢 Devin Review found nothing to fix · View findings