Skip to content

Commit

Permalink
FFM-5087 - Update sign task for pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
andybharness committed Jan 8, 2024
1 parent 8c830f9 commit 3c6de94
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -232,24 +232,7 @@ publishing {
signing {
required { gradle.taskGraph.hasTask("publish") }

if (project.hasProperty("signKeyId") || project.hasProperty("signKey")) {
def signKey = project.findProperty("signKey")
def signKeyId = project.findProperty("signKeyId")
def signPass = project.findProperty("signPass")
if (signKeyId) {
useInMemoryPgpKeys(signKeyId, signKey, signPass)
} else if (signKey) {
useInMemoryPgpKeys(signKey, signPass)
}
sign publishing.publications.mavenJava
} else {
if (gradle.taskGraph.hasTask("publish")) {
println("No signing key given:\n" +
" pass in -PsignPass=secret\n" +
" WITH -PsignKey=~/.gnupg/ring.gpg\n" +
" OR -PsignKeyId=1234ABCD\n")
}
}
sign publishing.publications.mavenJava
}

spotless {
Expand Down

0 comments on commit 3c6de94

Please sign in to comment.