Skip to content

Publish the library and shaded artifact to Maven Central - #4

Open
panicking wants to merge 1 commit into
masterfrom
feature/maven-central
Open

panicking wants to merge 1 commit into
masterfrom
feature/maven-central

Conversation

@panicking

Copy link
Copy Markdown

GitHub Packages requires authentication even for public packages, so
anonymous consumers such as the public Jenkins CI cannot resolve the
shaded artifact there. Publish both openid4java and
openid4java-shaded to Maven Central instead.

This adds the Central-required metadata to the shaded artifact,
attaches its sources and Javadoc, and signs both artifacts with the
release profile. The new manual Publish to Maven Central workflow
validates by default (auto_publish=false) and can publish on
request. GitHub Packages remains available as an opt-in mirror via
the github-packages profile.

Validated with mvn -Prelease -Dgpg.skip=true verify (114 tests),
mvn -Prelease -Dgpg.skip=true -f shaded/pom.xml clean package, and
mvn clean verify in the Jenkins plugin against the locally
installed shaded artifact.

Actual Central publication still requires the repository secrets
CENTRAL_USERNAME, CENTRAL_TOKEN, GPG_PRIVATE_KEY and
GPG_PASSPHRASE, plus namespace verification for
com.amarulasolutions in the Sonatype Central Portal.

🤖 Generated with Claude Code

Move the public distribution of the library and the shaded artifact
from GitHub Packages to Maven Central. GitHub Packages requires
authentication even for public packages, so Jenkins CI cannot resolve
the shaded artifact from it anonymously.

Add the metadata Central requires to the shaded artifact, attach its
sources and Javadoc, and sign both artifacts with the release profile.
Replace the shaded GitHub Packages workflow with a manual Central
publishing workflow that validates by default and publishes on
request. The GitHub Packages deployment remains available through the
github-packages profile as an internal mirror.

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
@panicking
panicking force-pushed the feature/maven-central branch from 0417e7d to 47201ee Compare November 21, 2026 22:16
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.

1 participant