Add Maven Central publishing configuration#29
Merged
Conversation
Adds GPG signing and Sonatype Central publishing plugin to a release profile, SCM metadata to the parent POM, and GitHub Actions workflows for CI and tag-triggered releases. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
missing a dependency or something? looks like it might be an existing issue though. maybe we weren't running compilation as part of ci before? |
bacfdc7 to
b6596c5
Compare
b6596c5 to
ca6e309
Compare
Resolves 4 open Dependabot alerts: - PolymorphicTypeValidator bypass (high) - BasicPolymorphicTypeValidator allowIfSubTypeIsArray bypass (high) - InetSocketAddress SSRF via eager DNS resolution (medium) - Case-insensitive deserialization @JsonIgnoreProperties bypass (medium) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ca6e309 to
64eac66
Compare
sharanmoore
approved these changes
Jun 29, 2026
sharanmoore
left a comment
There was a problem hiding this comment.
a little readme section on publishing would be helpful for future us
Member
Author
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
<scm>block and areleaseMaven profile to the parent POM withmaven-gpg-plugin(artifact signing) andcentral-publishing-maven-plugin(Sonatype Central Portal).github/workflows/ci.ymlto runmvn verifyon every push/PR tomain.github/workflows/release.ymlto publish to Maven Central onv*tag push — extracts the version from the tag, sets it in the POMs, and deploys signed artifactsOne-time setup required
Before the release workflow will work, add these GitHub Actions secrets:
SONATYPE_USERNAMESONATYPE_PASSWORDMAVEN_GPG_PRIVATE_KEYgpg --armor --export-secret-keys KEY_ID)MAVEN_GPG_PASSPHRASEAlso register the
ai.gradientlabsnamespace on Sonatype Central (DNS TXT verification ongradient-labs.ai).Test plan
v1.0.0tag and verify the release workflow publishes to Maven Central🤖 Generated with Claude Code