Skip to content

Commit 8236a5e

Browse files
committed
update signing onlyIf {} check to be CC compatible
1 parent 6ff6573 commit 8236a5e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: 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
}

Diff for: 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)