Skip to content

Commit

Permalink
configure signature for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
bjansen-caps committed Nov 25, 2024
1 parent 43c7029 commit 4e1f2b9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,15 @@ publishing {
}

signing {
sign publishing.publications.maven
afterEvaluate { project ->
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
}


javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
Expand Down

0 comments on commit 4e1f2b9

Please sign in to comment.