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 7a51019 commit 693379bCopy full SHA for 693379b
build-logic/src/main/kotlin/maven-central-publish.gradle.kts
@@ -9,8 +9,8 @@ signing {
9
val signingPassword: String? by project
10
11
useInMemoryPgpKeys(signingKey, signingPassword)
12
- publishing.publications.configureEach(::sign)
13
- tasks.withType<Sign>().configureEach { enabled = signingKey != null }
+ sign(publishing.publications)
+ isRequired = signingKey != null || providers.environmentVariable("GRADLE_PUBLISH_KEY").isPresent
14
}
15
16
plugins.withId("java") {
0 commit comments