blob: 68eb6640ffb939731a49c117781caf4af3d142ad [file] [log] [blame] [edit]
plugins {
`java-platform`
id("ktlint-publication")
}
publishing.publications.named<MavenPublication>("maven") {
from(components["javaPlatform"])
}
dependencies {
logger.lifecycle("Creating dependencies for ktlint-bom")
constraints {
project.rootProject.subprojects.forEach { subproject ->
subproject.plugins.withId("ktlint-publication") {
// Exclude self project from BOM.
if (subproject == project) return@withId
logger.lifecycle(" + Add api dependency on '${subproject.name}' to ktlint-bom")
api(subproject)
}
}
}
logger.lifecycle("Finished creating dependencies for ktlint-bom")
}