Skip to content

Commit

Permalink
Use in-memory keys for signing.
Browse files Browse the repository at this point in the history
*This allows to provide password and key via project properties instead having to use gradle.properties

Signed-off-by: Nils-Oliver Linden <[email protected]>
  • Loading branch information
Nils-Oliver Linden authored and Nils-Oliver Linden committed Aug 7, 2020
1 parent 71c4363 commit ea8e87a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ subprojects {
// requires gradle.properties, see http://www.gradle.org/docs/current/userguide/signing_plugin.html
configure<SigningExtension> {
setRequired({ isReleaseVersion && gradle.taskGraph.hasTask("publish") })
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
sign(the<PublishingExtension>().publications["mavenJava"])
}
}
Expand Down

0 comments on commit ea8e87a

Please sign in to comment.