Skip to content

Commit

Permalink
[build] fix isReleaseVersion check for signing artifacts (#204)
Browse files Browse the repository at this point in the history
Co-authored-by: Dariusz Kuc <[email protected]>
  • Loading branch information
dariuszkuc and dariuszkuc authored May 31, 2022
1 parent 63b6dc8 commit a9249fc
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ repositories {
}
}

extra["isReleaseVersion"] = !version.toString().endsWith("SNAPSHOT")

val junitVersion: String by project
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
Expand Down Expand Up @@ -107,7 +105,7 @@ tasks {
}
signing {
setRequired {
(rootProject.extra["isReleaseVersion"] as Boolean) && gradle.taskGraph.hasTask("publish")
!version.toString().endsWith("SNAPSHOT") && gradle.taskGraph.hasTask("publish")
}
val signingKey: String? = System.getenv("GPG_PRIVATE_KEY")
val signingPassword: String? = System.getenv("GPG_PRIVATE_KEY_PASSWORD")
Expand Down

0 comments on commit a9249fc

Please sign in to comment.