From 57e9a27e2314923e9fddb89f0a30f78a3a929e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwiecin=CC=81ski?= Date: Sun, 16 Jul 2023 00:34:22 +0200 Subject: [PATCH] Share the list of all internal non-publishable subprojects --- build.gradle.kts | 8 ++++++-- ktlint-bom/build.gradle.kts | 9 ++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9f73bfeea8..b29a6b1213 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,12 +7,16 @@ plugins { alias(libs.plugins.kotlinx.binary.compatibiltiy.validator) } -apiValidation { - ignoredProjects += setOf( +val internalNonPublishableProjects by extra( + setOf( "ktlint-api-consumer", "ktlint-bom", "ktlint-ruleset-template", ) +) + +apiValidation { + ignoredProjects += internalNonPublishableProjects } val ktlint: Configuration by configurations.creating diff --git a/ktlint-bom/build.gradle.kts b/ktlint-bom/build.gradle.kts index 85fd4c5185..904b6a7b70 100644 --- a/ktlint-bom/build.gradle.kts +++ b/ktlint-bom/build.gradle.kts @@ -7,13 +7,8 @@ publishing.publications.named("maven") { from(components["javaPlatform"]) } -val excludeList = - listOf( - "ktlint-api-consumer", - "ktlint-bom", - "ktlint-ruleset-template", - "ktlint-test-ruleset-provider-v2-deprecated", - ) +val internalNonPublishableProjects: Set by rootProject.extra +val excludeList = internalNonPublishableProjects + "ktlint-test-ruleset-provider-v2-deprecated" dependencies { logger.lifecycle("Creating dependencies for ktlint-bom")