From 8236a5e3633fd515267f1cdacde86b19440e076b Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Sat, 16 Mar 2024 11:32:19 +0100 Subject: [PATCH] update signing `onlyIf {}` check to be CC compatible --- gcpbuildcache/build.gradle.kts | 3 ++- s3buildcache/build.gradle.kts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gcpbuildcache/build.gradle.kts b/gcpbuildcache/build.gradle.kts index c5aa52c..88b7e9b 100644 --- a/gcpbuildcache/build.gradle.kts +++ b/gcpbuildcache/build.gradle.kts @@ -89,5 +89,6 @@ tasks.named("check") { } tasks.withType().configureEach { - onlyIf { project.hasProperty("signing.keyId") } + val signingKeyIdPresent = project.hasProperty("signing.keyId") + onlyIf("signing.keyId is present") { signingKeyIdPresent } } diff --git a/s3buildcache/build.gradle.kts b/s3buildcache/build.gradle.kts index b23631b..970de58 100644 --- a/s3buildcache/build.gradle.kts +++ b/s3buildcache/build.gradle.kts @@ -98,5 +98,6 @@ tasks.named("check") { } tasks.withType().configureEach { - onlyIf { project.hasProperty("signing.keyId") } + val signingKeyIdPresent = project.hasProperty("signing.keyId") + onlyIf("signing.keyId is present") { signingKeyIdPresent } }