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 bd140e6..78e152c 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 } }