From ddb7754bae2c25351dcdc066ef7e592b81af1048 Mon Sep 17 00:00:00 2001 From: serpro69 <22973227+serpro69@users.noreply.github.com> Date: Sun, 17 Nov 2024 14:24:43 +0100 Subject: [PATCH] Publish all artifacts with the same version Close #249 --- buildSrc/src/main/kotlin/Projects.kt | 6 +----- settings.gradle.kts | 16 ---------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/buildSrc/src/main/kotlin/Projects.kt b/buildSrc/src/main/kotlin/Projects.kt index dc4532a92..d0d0072d8 100644 --- a/buildSrc/src/main/kotlin/Projects.kt +++ b/buildSrc/src/main/kotlin/Projects.kt @@ -28,9 +28,5 @@ val Project.isSnapshot: Provider val Project.isRelease: Provider get() = provider { val tag = tasks.getByName("tag", TagTask::class) - /* all fakers have their own tags, so checking if tag.didWork is enough for them, - ':core' shares the tag with 'root', ':bom' and ':cli-bot' modules, - and hence the tag might already exist and didWork will return false for ':core' */ - val tagCreated = if (project.name != "core") tag.didWork else tag.didWork || tag.tagExists - !isDev.get() && !isSnapshot.get() && tagCreated + (!isDev.get() && !isSnapshot.get()) && (tag.didWork || tag.tagExists) } diff --git a/settings.gradle.kts b/settings.gradle.kts index b4d7615f9..c5ca7aed3 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -61,20 +61,4 @@ settings.extensions.configure("semantic-versioning") { version { useSnapshots = true } - monorepo { - fakers.forEach { f -> - module(":faker:$f") { - tag { - prefix = TagPrefix("faker-$f-v") - } - } - } - extensions.filter { !it.endsWith("-test") }.forEach { e -> - module(":extension:$e") { - tag { - prefix = TagPrefix("ext-$e-v") - } - } - } - } }