Skip to content

Commit

Permalink
Setup properties for gpg key.
Browse files Browse the repository at this point in the history
  • Loading branch information
joehni committed Dec 18, 2020
1 parent f331c43 commit ac84472
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BUILD.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mvn clean install
Before deploying:

copy settings-template.xml to ~/.m2/settings.xml adding your Sonatype OSSRH
username and passwords.
username and passwords and also your GPG key and password.

To deploy (optionally adding sources and javadoc jars):
mvn deploy
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${version.plugin.maven.gpg}</version>
<configuration>
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
9 changes: 8 additions & 1 deletion settings-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
<id>ossrh-staging</id>
<username>your-sonatype.org-id</username>
<password>your-sonatype.org-pwd</password>
</server>
</server>
<server>
<id>${gpg.keyname}</id>
<password>your-gpg-key-pwd</password>
</server>
</servers>
<properties>
<gpg.keyname>your-gpg-keyname</gpg.keyname>
</properties>
</settings>

0 comments on commit ac84472

Please sign in to comment.