Skip to content

Commit 47aa35d

Browse files
committed
build: add a command-line toggle to turn off signing during publishing
1 parent 0164b3a commit 47aa35d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

publishing-build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ publishing {
8484
}
8585
}
8686

87-
signing {
88-
useGpgCmd()
89-
sign publishing.publications.mavenJava
87+
if (!project.hasProperty('noSigning')) {
88+
signing {
89+
useGpgCmd()
90+
sign publishing.publications.mavenJava
91+
}
9092
}
9193

9294
task finalizeMavenCentralPublish() {

0 commit comments

Comments
 (0)