Skip to content

Commit

Permalink
Ensure artifact is signed
Browse files Browse the repository at this point in the history
  • Loading branch information
hierynomus committed Aug 30, 2021
1 parent 10001ef commit f1d09ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,13 @@ publishing {
}
}

project.signing {
required { project.gradle.taskGraph.hasTask("release") }
sign publishing.publications.maven
}

if (project.hasProperty("signingKeyId") || project.hasProperty("signingKey")) {
project.signing {
required { project.gradle.taskGraph.hasTask("release") }
def signingKeyId = project.findProperty("signingKeyId")
def signingKey = project.findProperty("signingKey")
def signingPassword = project.findProperty("signingPassword")
Expand Down

0 comments on commit f1d09ea

Please sign in to comment.