Skip to content

Commit

Permalink
Update signing instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tovbinm committed Feb 8, 2019
1 parent 7ac590f commit 067dc83
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,12 @@ configure(subProjs) {

if (System.getenv("SIGN_RELEASE") == 'true') {
signing {
// Note: requires 'signing.keyId', 'signing.password', 'signing.secretKeyRingFile' be set in ~/.gradle/gradle.properties file
// and https://gpgtools.org/ (gpg2 installed and configured)
// For signing to work read - https://docs.gradle.org/current/userguide/signing_plugin.html
// Most importantly:
// 1. Install & configure GPGTools - https://gpgtools.org
// 2. Copy the full 40 character key id from the output of the command: gpg2 -K
// 3. Set 'signing.gnupg.keyName=<key id>' in ~/.gradle/gradle.properties file
// 4. If you protect your key with a passphrase add 'signing.password=<secret>' in ~/.gradle/gradle.properties file
useGpgCmd()
sign publishing.publications.mavenJava
}
Expand Down

0 comments on commit 067dc83

Please sign in to comment.