Skip to content

Commit 4ed812a

Browse files
committed
sign only when publishing to sonatype, i.e. publishToMavenLocal does not sign
1 parent 6b34e9c commit 4ed812a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

gradle/publishing.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ publishing {
6161
}
6262
}
6363

64-
//tasks.withType(Sign) {
65-
// onlyIf { project.isReleaseVersion }
66-
//}
67-
6864
signing {
65+
setRequired({ gradle.taskGraph.hasTask("${project.path}:publishToSonatype") })
66+
6967
useInMemoryPgpKeys(signKey, signPwd)
7068

7169
signing {

0 commit comments

Comments
 (0)