From 021b952f63d71695e64ab17d5c003d1782c9a66f Mon Sep 17 00:00:00 2001 From: Serhii Prodan <22973227+serpro69@users.noreply.github.com> Date: Tue, 9 Apr 2024 13:00:36 +0200 Subject: [PATCH] Disable signing task for snapshots --- bom/build.gradle.kts | 4 ++-- buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bom/build.gradle.kts b/bom/build.gradle.kts index 86a7687bd..c4583dd08 100644 --- a/bom/build.gradle.kts +++ b/bom/build.gradle.kts @@ -123,6 +123,6 @@ tasks.withType().configureEach { */ tasks.withType().configureEach { dependsOn(project.tasks.getByName("tag")) - onlyIf("Not dev") { !isDev.get() } - onlyIf("Release or snapshot") { isRelease.get() || isSnapshot.get() } + onlyIf("Not dev and snapshot") { !isDev.get() && !isSnapshot.get() } + onlyIf("Release") { isRelease.get() } } diff --git a/buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts b/buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts index 2f4dbb96f..140fe28db 100644 --- a/buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts @@ -235,6 +235,6 @@ tasks.withType().configureEach { tasks.withType().configureEach { dependsOn(project.tasks.getByName("tag")) - onlyIf("Not dev") { !isDev.get() } - onlyIf("Release or snapshot") { isRelease.get() || isSnapshot.get() } + onlyIf("Not dev and snapshot") { !isDev.get() && !isSnapshot.get() } + onlyIf("Release") { isRelease.get() } }