Repository navigation
2.x-jdk8: publish with the Eclipse Foundation's Central Portal and signing secrets - #1997
Merged
Merged
Conversation
…gning secrets The same change as on master. The Eclipse Foundation added a Central Portal user token (CENTRAL_SONATYPE_TOKEN_USERNAME/PASSWORD) and a signing key (GPG_PRIVATE_KEY, GPG_PASSPHRASE_NEW, GPG_KEY_ID) as repository secrets; the workflow used the 2020-era SONATYPE_* and GPG_* secrets. - The Portal token goes into the central server entry of .utility/.maven.xml. - actions/setup-java imports the armored signing key, maven-gpg-plugin takes the passphrase from MAVEN_GPG_PASSPHRASE and signs with GPG_KEY_ID. - central-publishing-maven-plugin 0.11.0 has no waitUntilPublished parameter; waitUntil=published replaces it. Publishing from 2.x-jdk8 stays gated on PUBLISH_ON_2X_JDK8. Co-authored-by: Rich Fecher <richard.fecher@vantor.com>
This was referenced Oct 26, 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.
The Eclipse Foundation has added publishing credentials for the
org.locationtechnamespace as repository secrets, declared in the LocationTech Otterdog config:CENTRAL_SONATYPE_TOKEN_USERNAME/_PASSWORD;GPG_PRIVATE_KEY, an armored export of the signing subkeys, plusGPG_PASSPHRASE_NEWandGPG_KEY_ID.The
Publishworkflow still read the 2020-eraSONATYPE_*andGPG_*secrets, which predate the Central Portal. This switches it to the new ones, following the CBI guide for publishing to the Central Portal from GitHub Actions.centralserver entry of.utility/.maven.xml.actions/setup-javaimports the signing key (gpg-private-key,gpg-passphrase: MAVEN_GPG_PASSPHRASE).maven-gpg-plugin3.2.8 reads the passphrase fromMAVEN_GPG_PASSPHRASEand signs with-Dgpg.keyname=$GPG_KEY_ID.gpg.executablefrom an unsetGPG_EXECUTABLE.central-publishing-maven-plugin0.11.0 has nowaitUntilPublishedparameter, so the root pom's anddev-resources' setting was silently ignored.<waitUntil>published</waitUntil>is the setting that waits for publication. Each deployment is now named after the version.Publishing stays gated exactly as before: on
PUBLISH_ON_2X_JDK8, or a manual Run workflow. The same change formasteris #1996. Once both are merged, nothing uses the oldGPG_OWNERTRUST,GPG_PASSPHRASE,GPG_SECRET_KEYS,SONATYPE_USERNAMEorSONATYPE_PASSWORDsecrets, and they can be removed from the Otterdog config, as the Eclipse admins recommended.Not exercised: the signing and upload themselves need the secrets, so they run only when publishing does. With
-Prelease,help:effective-pomresolves the new plugin configuration.