Skip to content

Commit bc4d8f1

Browse files
committed
sign only when key and password are available
1 parent 115d059 commit bc4d8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ publishing {
9898
}
9999

100100
signing {
101-
if (project.gradle.taskGraph.hasTask("publishToMavenCentral")) {
101+
if (findProperty("signingKey") != null && findProperty("signingPassword") != null) {
102102
def signingKey = findProperty("signingKey")
103103
def signingPassword = findProperty("signingPassword")
104104
useInMemoryPgpKeys(signingKey, signingPassword)

0 commit comments

Comments
 (0)