Skip to content

Commit

Permalink
update signing onlyIf {} check to be CC compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
aSemy committed Mar 16, 2024
1 parent 6ff6573 commit 8236a5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gcpbuildcache/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@ tasks.named<Task>("check") {
}

tasks.withType<Sign>().configureEach {
onlyIf { project.hasProperty("signing.keyId") }
val signingKeyIdPresent = project.hasProperty("signing.keyId")
onlyIf("signing.keyId is present") { signingKeyIdPresent }
}
3 changes: 2 additions & 1 deletion s3buildcache/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,6 @@ tasks.named<Task>("check") {
}

tasks.withType<Sign>().configureEach {
onlyIf { project.hasProperty("signing.keyId") }
val signingKeyIdPresent = project.hasProperty("signing.keyId")
onlyIf("signing.keyId is present") { signingKeyIdPresent }
}

0 comments on commit 8236a5e

Please sign in to comment.