Since 7.9.0, the plugin is signed with the same GPG key, that is used to sign the main PMD artifacts for maven central.
Tycho's GPG Plugin is used for that.
There is no need anymore to use jar signer and use a real Let's Encrypt certificate.
How it works:
- During build setup, the private gpg key is imported from the environment variable
PMD_CI_GPG_PRIVATE_KEY
which is a secret in GitHub Action. This environment variable is used bypmd_ci_setup_secrets_private_env
which is called bybuild.sh
(but not for pull requests). - The gpg plugin uses the environment variable
MAVEN_GPG_PASSPHRASE
for the passphrase. This is configured as well as a secret. The tycho gpg plugin is activated only when profilesign
is activated.