Skip to content

Commit

Permalink
Share the list of all internal non-publishable subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Jul 15, 2023
1 parent feaf935 commit 57e9a27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 6 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 2 additions & 7 deletions ktlint-bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ publishing.publications.named<MavenPublication>("maven") {
from(components["javaPlatform"])
}

val excludeList =
listOf(
"ktlint-api-consumer",
"ktlint-bom",
"ktlint-ruleset-template",
"ktlint-test-ruleset-provider-v2-deprecated",
)
val internalNonPublishableProjects: Set<String> by rootProject.extra
val excludeList = internalNonPublishableProjects + "ktlint-test-ruleset-provider-v2-deprecated"

dependencies {
logger.lifecycle("Creating dependencies for ktlint-bom")
Expand Down

0 comments on commit 57e9a27

Please # to comment.