Skip to content

Comments

Fix Java deployment#1335

Merged
pkwarren merged 2 commits intomainfrom
pkw/fix-java-deploy
Dec 8, 2025
Merged

Fix Java deployment#1335
pkwarren merged 2 commits intomainfrom
pkw/fix-java-deploy

Conversation

@pkwarren
Copy link
Member

@pkwarren pkwarren commented Dec 8, 2025

Update to use env vars in setup-java as documented. Remove unnecessary gpg signing step as the gpg plugin does this. Update to build with Java 21 instead of 17.

Update to use env vars in setup-java as documented. Remove unnecessary
gpg signing step as the gpg plugin does this. Update to build with Java
21 instead of 17.
@pkwarren pkwarren requested review from rodaine and rubensf December 8, 2025 21:01
SONATYPE_USER: ${{secrets.SONATYPE_USER}}
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
GPG_KEY_NAME: ${{secrets.GPG_KEY_NAME}}
GPG_PASSPHRASE: ${{secrets.GPG_PASSPHRASE}}
Copy link
Member Author

Choose a reason for hiding this comment

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

These don't need to be set for the full job - just the release step.

VERSION=${{ env.REF_NAME }}
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV

- name: 'Configure GPG signing'
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm pretty sure this is no longer necessary - if we set MAVEN_GPG_KEY and MAVEN_GPG_PASSPHRASE, the GPG signing should be automatic: https://maven.apache.org/plugins/maven-gpg-plugin/sign-mojo.html

gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: ${ env.GPG_PASSPHRASE }
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@rubensf rubensf left a comment

Choose a reason for hiding this comment

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

So we don't need secrets.GPG_SECRET_KEY anymore?

@pkwarren pkwarren requested review from rodaine and rubensf December 8, 2025 21:25
@pkwarren pkwarren merged commit e3f4859 into main Dec 8, 2025
4 checks passed
@pkwarren pkwarren deleted the pkw/fix-java-deploy branch December 8, 2025 21:40
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