Skip to content

Commit 86fcf79

Browse files
committed
conditional signing
1 parent eab2be3 commit 86fcf79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ artifacts {
5757
}
5858

5959
signing {
60+
required { gradle.taskGraph.hasTask("uploadArchives") }
6061
sign configurations.archives
6162
}
6263

@@ -74,7 +75,7 @@ uploadArchives {
7475
authentication(userName: ossrhUsername, password: ossrhPassword)
7576
}
7677
}
77-
78+
7879
pom.project {
7980
name 'Java Hamcrest'
8081
packaging 'jar'

0 commit comments

Comments
 (0)