Skip to content

Conversation

@bevzzz
Copy link
Collaborator

@bevzzz bevzzz commented Jul 22, 2025

Cherry-picked commits 360d75d and eff7a1e + 983305c (squashed) from #408.

See original PR for details.

bevzzz added 2 commits July 22, 2025 15:59
OSSRH platform was sunset on June 30, 2025 and the recommended way to
publish Maven artifacts is now via 'central-publishing-maven-plugin'.
https://central.sonatype.org/pages/ossrh-eol/

The new Publishing Platform doubles as a staging server and will
verify the artifact's checksums and GPG-signatures.

1. We replace nexus-staging-maven-plugin with
   central-publishing-maven-plugin and drop the explicit
   <distributionManagement> configuration (we use the plugin's default
   configuration).
2. Default settings for 'mvn deploy' is to NOT auto-publish and out wait
   until the artifact is 'verified'. We override these in our GitHub CI
   to autoPublish=true and waitUntil=published.
   This allows testing deployment changes and running mvn-deploy locally
   without running a risk of accidentally publishing an artifact.
3. Move ./decrypt_secret.sh to tools/ and add an encrypt_secret.sh
   script for convenience
4. Update create-release.yaml GH workflow
settings.xml have new username and password for Central Maven Repository
Publishing Platform.

Removed <server> configuration that was used to pass the GPG passphrase to
gpg-maven-plugin, as the recommended method is via an env variable.

Added autoPublish and waitUntil properties to control deployment behavior.
@bevzzz bevzzz requested a review from a team as a code owner July 22, 2025 14:02
Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@bevzzz bevzzz merged commit 019fff7 into main Jul 22, 2025
5 checks passed
@bevzzz bevzzz deleted the chore/update-release-configuration branch July 22, 2025 14:22
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.

3 participants