Skip to content

Commit 9a6d378

Browse files
committed
better bandaid
1 parent 1c9c32d commit 9a6d378

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gradle/build-plugins/src/main/kotlin/io.codemodder.maven-publish.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ extensions.getByType<nebula.plugin.contacts.ContactsExtension>().run {
2222

2323
val publicationName = "nebula"
2424
signing {
25-
setRequired(false)
2625
if (providers.environmentVariable("CI").isPresent) {
2726
val signingKey: String? by project
2827
val signingPassword: String? by project
2928
useInMemoryPgpKeys(signingKey, signingPassword)
29+
} else {
30+
isRequired = false
3031
}
3132
sign(extensions.getByType<PublishingExtension>().publications.getByName(publicationName))
3233
}

0 commit comments

Comments
 (0)