Migrate publishing logic from OSSRH to Central Portal#2680
Merged
Conversation
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.
These changes replace the outdated OSSRH publishing configuration in
pom.xmlby the new settings for the Central Portal. The profile was consequently renamed fromossrhtocentral.As prerequisites,
the private key
cg@basex.orgmust be present in the gpg keyring (usegpg --list-secret-keysto verify)the
basex-publishuser token for Central Portal must be present in~/.m2/settings.xml, e.g.Publishing can then be done fully automated, with
MAVEN_GPG_PASSPHRASEset to the actual passphrase for thecg@basex.orgkey, by runningVersions 12.1 through 12.3 have now been published using this approach (note that this publishing was done using
org.sonatype.central:central-publishing-maven-plugin:0.7.0, while this PR moves forward to...:0.10.0).In addition to the
pom.xmlchanges, two Javadoc warnings have been fixed, which were reported in the build log.Fixes #2649