We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32b9ef7 commit 2d50c32Copy full SHA for 2d50c32
build.gradle
@@ -157,3 +157,9 @@ publishing {
157
signing {
158
sign publishing.publications.mavenJava
159
}
160
+
161
+tasks.withType(Sign) {
162
+ // reproducible builds use "publishToMavenLocal" and need to be able to publish locally without signing,
163
+ // so we always sign when publishing to Maven Central, but *not* when publishing to the local Maven repo
164
+ onlyIf { gradle.taskGraph.hasTask(':publish') }
165
+}
0 commit comments