Skip to content

Commit a9249fc

Browse files
authored
[build] fix isReleaseVersion check for signing artifacts (#204)
Co-authored-by: Dariusz Kuc <dkuc@apollographql.com>
1 parent 63b6dc8 commit a9249fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

buildSrc/src/main/kotlin/com.apollographql.federation.java-conventions.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ repositories {
1717
}
1818
}
1919

20-
extra["isReleaseVersion"] = !version.toString().endsWith("SNAPSHOT")
21-
2220
val junitVersion: String by project
2321
dependencies {
2422
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
@@ -107,7 +105,7 @@ tasks {
107105
}
108106
signing {
109107
setRequired {
110-
(rootProject.extra["isReleaseVersion"] as Boolean) && gradle.taskGraph.hasTask("publish")
108+
!version.toString().endsWith("SNAPSHOT") && gradle.taskGraph.hasTask("publish")
111109
}
112110
val signingKey: String? = System.getenv("GPG_PRIVATE_KEY")
113111
val signingPassword: String? = System.getenv("GPG_PRIVATE_KEY_PASSWORD")

0 commit comments

Comments
 (0)