Skip to content

Commit d98bb5b

Browse files
authored
Merge pull request #50 from aSemy/fix-cc-signing-check
Update signing `onlyIf {}` check to be CC compatible
2 parents 361ff6f + 8236a5e commit d98bb5b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gcpbuildcache/build.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,6 @@ tasks.named<Task>("check") {
8989
}
9090

9191
tasks.withType<Sign>().configureEach {
92-
onlyIf { project.hasProperty("signing.keyId") }
92+
val signingKeyIdPresent = project.hasProperty("signing.keyId")
93+
onlyIf("signing.keyId is present") { signingKeyIdPresent }
9394
}

s3buildcache/build.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,6 @@ tasks.named<Task>("check") {
9898
}
9999

100100
tasks.withType<Sign>().configureEach {
101-
onlyIf { project.hasProperty("signing.keyId") }
101+
val signingKeyIdPresent = project.hasProperty("signing.keyId")
102+
onlyIf("signing.keyId is present") { signingKeyIdPresent }
102103
}

0 commit comments

Comments
 (0)