mirror of
https://github.com/jlengrand/detekt.git
synced 2026-03-10 08:11:23 +00:00
40 lines
1.0 KiB
Kotlin
40 lines
1.0 KiB
Kotlin
plugins {
|
|
id("module")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(projects.detektApi)
|
|
implementation(libs.ktlint.rulesetStandard) {
|
|
exclude(group = "org.jetbrains.kotlin")
|
|
}
|
|
implementation(libs.ktlint.core) {
|
|
exclude(group = "org.jetbrains.kotlin")
|
|
}
|
|
implementation(libs.ktlint.rulesetExperimental) {
|
|
exclude(group = "org.jetbrains.kotlin")
|
|
}
|
|
runtimeOnly(libs.slf4j.nop)
|
|
|
|
testImplementation(projects.detektTest)
|
|
testImplementation(libs.assertj)
|
|
}
|
|
|
|
tasks.build { finalizedBy(":detekt-generator:generateDocumentation") }
|
|
|
|
val depsToPackage = setOf(
|
|
"org.ec4j.core",
|
|
"com.pinterest.ktlint",
|
|
"io.github.microutils",
|
|
"org.slf4j",
|
|
)
|
|
|
|
tasks.jar {
|
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE // allow duplicates
|
|
dependsOn(configurations.runtimeClasspath)
|
|
from({
|
|
configurations.runtimeClasspath.get()
|
|
.filter { dependency -> depsToPackage.any { it in dependency.toString() } }
|
|
.map { if (it.isDirectory) it else zipTree(it) }
|
|
})
|
|
}
|