From e2a4499f114ccc88ba0c68d5ad1bf344a1856d27 Mon Sep 17 00:00:00 2001 From: Serhii Prodan <22973227+serpro69@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:50:09 +0200 Subject: [PATCH] Update bom to include :extension:* submodules --- bom/build.gradle.kts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bom/build.gradle.kts b/bom/build.gradle.kts index c4583dd08..cde7bffe9 100644 --- a/bom/build.gradle.kts +++ b/bom/build.gradle.kts @@ -1,6 +1,4 @@ import io.github.serpro69.semverkt.gradle.plugin.tasks.TagTask -import kotlinx.validation.KotlinApiBuildTask -import kotlinx.validation.KotlinApiCompareTask plugins { `java-platform` @@ -28,10 +26,10 @@ val isRelease = provider { // Exclude subprojects that will never be published so that when configuring this project // we don't force their configuration and do unnecessary work -val excludeFromBom = listOf("test") +val excludeFromBom = listOf(":cli-bot", ":docs", ":extension", ":faker", ":test", ":extension:kotest-property-test") fun projectsFilter(candidateProject: Project) = - excludeFromBom.all { !candidateProject.name.contains(it) } && - candidateProject.name != bom.name + excludeFromBom.none { candidateProject.path == it } + && candidateProject.name != bom.name // Declare that this subproject depends on all subprojects matching the filter // When this subproject is configured, it will force configuration of all subprojects @@ -41,6 +39,7 @@ rootProject.subprojects.filter(::projectsFilter).forEach { bom.evaluationDepends dependencies { constraints { rootProject.subprojects.filter { project -> + logger.info("Include {} in bom: {}", project, project.tasks.findByName("publish")?.enabled ?: false) // Only declare dependencies on projects that will have publications projectsFilter(project) && project.tasks.findByName("publish")?.enabled == true }.forEach { project ->