Skip to content

Commit 3c6de94

Browse files
committed
FFM-5087 - Update sign task for pipeline
1 parent 8c830f9 commit 3c6de94

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

build.gradle

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -232,24 +232,7 @@ publishing {
232232
signing {
233233
required { gradle.taskGraph.hasTask("publish") }
234234

235-
if (project.hasProperty("signKeyId") || project.hasProperty("signKey")) {
236-
def signKey = project.findProperty("signKey")
237-
def signKeyId = project.findProperty("signKeyId")
238-
def signPass = project.findProperty("signPass")
239-
if (signKeyId) {
240-
useInMemoryPgpKeys(signKeyId, signKey, signPass)
241-
} else if (signKey) {
242-
useInMemoryPgpKeys(signKey, signPass)
243-
}
244-
sign publishing.publications.mavenJava
245-
} else {
246-
if (gradle.taskGraph.hasTask("publish")) {
247-
println("No signing key given:\n" +
248-
" pass in -PsignPass=secret\n" +
249-
" WITH -PsignKey=~/.gnupg/ring.gpg\n" +
250-
" OR -PsignKeyId=1234ABCD\n")
251-
}
252-
}
235+
sign publishing.publications.mavenJava
253236
}
254237

255238
spotless {

0 commit comments

Comments
 (0)