-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
45 lines (41 loc) · 1.34 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@file:Suppress("DSL_SCOPE_VIOLATION")
// TODO: Remove once KTIJ-19369 is fixed
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.detekt) apply true
}
subprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
configure<io.gitlab.arturbosch.detekt.extensions.DetektExtension> {
// configure
detekt {
toolVersion = rootProject.libs.plugins.detekt.get().version.toString()
config = files("${rootProject.projectDir}/detekt-config.yml")
baseline = file("${rootProject.projectDir}/detekt-baseline.xml")
source = files(
"src/main/java",
"src/test/java",
"src/main/kotlin",
"src/test/kotlin",
"src/androidMain/kotlin",
"src/androidUnitTest/kotlin",
"src/commonMain/kotlin",
"src/commonTest/kotlin",
"src/iosMain/kotlin",
"src/iosTest/kotlin"
)
}
tasks.named("detekt").configure {
reports {
xml.required.set(false)
txt.required.set(false)
html.required.set(true)
html.outputLocation.set(file("${rootProject.projectDir}/reports/detekt.html"))
}
}
}
}