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() } }