Skip to content

Commit

Permalink
update signing requirement check, and signing property presence check
Browse files Browse the repository at this point in the history
  • Loading branch information
aSemy committed Sep 1, 2023
1 parent bcd567d commit 972c3ee
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ signing {
val key = mavenPublishing.signingKey.orNull
val password = mavenPublishing.signingPassword.orNull

if (keyId != null && key != null && password != null) {
if (!keyId.isNullOrBlank() && !key.isNullOrBlank() && !password.isNullOrBlank()) {
useInMemoryPgpKeys(keyId, key, password)
}

setRequired({
keyId != null && key != null && password != null
gradle.taskGraph.allTasks.filterIsInstance<PublishToMavenRepository>().any {
it.repository.name == "SonatypeRelease"
}
})
}

Expand Down

0 comments on commit 972c3ee

Please sign in to comment.