Skip to content

Commit

Permalink
Only sign real releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Jul 9, 2021
1 parent ab06d22 commit 2793225
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,12 @@ nexusPublishing {
}

signing {
def signingKey = findProperty("signingKey") ?: System.getenv("GPG_PRIVATE_KEY")
def signingPassword = findProperty("signingPassword") ?: System.getenv("GPG_PASSPHRASE")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
if (!version.endsWith('SNAPSHOT')) {
def signingKey = findProperty("signingKey") ?: System.getenv("GPG_PRIVATE_KEY")
def signingPassword = findProperty("signingPassword") ?: System.getenv("GPG_PASSPHRASE")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
}

dependencyUpdates {
Expand Down

0 comments on commit 2793225

Please sign in to comment.