We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 301a12b commit 87f21aaCopy full SHA for 87f21aa
build.gradle
@@ -112,10 +112,12 @@ jacocoTestReport {
112
113
// https://docs.gradle.org/current/userguide/signing_plugin.html
114
signing {
115
- String signingKey = System.getenv("SIGNING_KEY")
116
- String signingPassword = System.getenv("SIGNING_PASSWORD")
117
- useInMemoryPgpKeys(signingKey, signingPassword)
118
- sign publishing.publications.jar
+ if (!version.endsWith('SNAPSHOT')) { // only sign non-snapshot versions
+ String signingKey = System.getenv("SIGNING_KEY")
+ String signingPassword = System.getenv("SIGNING_PASSWORD")
+ useInMemoryPgpKeys(signingKey, signingPassword)
119
+ sign publishing.publications.jar
120
+ }
121
}
122
123
// https://github.com/johnrengelman/shadow/issues/718
0 commit comments