Skip to content

Commit

Permalink
Allow specifying which gpg keyname to use
Browse files Browse the repository at this point in the history
  • Loading branch information
SubJunk committed May 18, 2024
1 parent a8d23e5 commit a8ce808
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ Most are easy to get via TMDB but `TMDB_API_ACCESS_TOKEN` is tricky. See https:/
## Deployment
Run `mvn deploy -P release`.

You can use the `gpg.keyname` property in the Maven settings.xml to specify which GPG key to use to sign the files, as described at https://central.sonatype.org/publish/requirements/gpg/#listing-keys

On macOS you might need to symlink `gpg2` to `gpg` as described at https://stackoverflow.com/a/69920288/2049714
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
</configuration>
</execution>
</executions>
</plugin>
Expand Down

0 comments on commit a8ce808

Please sign in to comment.