Skip to content

Commit

Permalink
fix publication
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg authored Dec 16, 2021
1 parent c3b8f93 commit b11cdb4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,11 @@ if (sonatypeUsername != null && sonatypePassword != null) {
plugins.withId("signing") {
extensions.configure<SigningExtension> {
//requiring signature if there is a publish task that is not to MavenLocal
isRequired = gradle.taskGraph.allTasks.any {
it.name.toLowerCase()
.contains("publish") && !it.name.contains("MavenLocal")
}
//TODO
// isRequired = gradle.taskGraph.allTasks.any {
// it.name.toLowerCase()
// .contains("publish") && !it.name.contains("MavenLocal")
// }

val signingKey: String? by project
val signingPassword: String? by project
Expand Down

0 comments on commit b11cdb4

Please sign in to comment.