Skip to content

Commit

Permalink
build: add jar signing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjo committed Oct 20, 2023
1 parent 9cff630 commit c87668c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
java
alias(libs.plugins.quarkus)
alias(libs.plugins.owasp)
signing
}

val projectVersion: String by project
Expand Down Expand Up @@ -57,6 +58,13 @@ dependencyCheck {
format = org.owasp.dependencycheck.reporting.ReportGenerator.Format.ALL.toString()
}

signing {
useInMemoryPgpKeys(findProperty("signingKey").toString(), findProperty("signingPassword").toString())
if(findProperty("signingKey") != null) {
sign(tasks["jar"])
}
}

tasks.withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
Expand Down

0 comments on commit c87668c

Please sign in to comment.