Skip to content

Conversation

jkebinger
Copy link
Collaborator

Summary

  • Replace nexus-staging-maven-plugin with central-publishing-maven-plugin
  • Add GitHub Actions workflows for CI and publishing to Maven Central
  • Update pom.xml configuration for modern Central Portal publishing

Changes

  • CI Workflow: maven.yml runs tests on push/PR to main
  • Publishing Workflow: publish.yml publishes to Maven Central after CI success
  • POM Updates: Modern central-publishing-maven-plugin configuration with auto-publish
  • Nexus Override: Added basepom.nexus-staging.skip=true to disable legacy behavior

Features

  • Only publishes non-snapshot versions
  • Checks if version already exists before publishing
  • Automatic GPG signing with GitHub secrets
  • Creates GitHub releases with auto-generated notes
  • Uses modern Maven Central publishing process

Required Setup

✅ GitHub secrets are configured:

  • GPG_PRIVATE_KEY
  • GPG_PASSPHRASE
  • MAVEN_CENTRAL_USERNAME
  • MAVEN_CENTRAL_TOKEN

Test Plan

  • Maven build works with new configuration (mvn clean verify)
  • All existing tests pass
  • Workflows are properly configured for cloud.prefab namespace
  • Test publish workflow after merge (will trigger on next version change)

🤖 Generated with Claude Code

- Replace nexus-staging-maven-plugin with central-publishing-maven-plugin
- Add basepom.nexus-staging.skip property to disable old nexus behavior
- Add GitHub Actions workflows for CI and publishing
- Update pom.xml with name and description for Maven Central
- Configure modern publishing process with GPG signing and auto-publish

Supports the new Maven Central publishing process for cloud.prefab namespace.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@jkebinger jkebinger requested a review from a team as a code owner September 26, 2025 21:38
Reduces log noise by suppressing Maven download progress bars during CI runs.
- Move maven-gpg-plugin from default build to 'release' profile
- CI workflow now runs tests without attempting GPG signing
- Publishing workflow uses -P release flag to enable signing during deploy
Copy link

@jdwyah jdwyah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@jkebinger jkebinger merged commit 4dc12f1 into main Sep 26, 2025
1 check passed
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.

2 participants