-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
32 lines (27 loc) · 955 Bytes
/
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
import io.gitlab.arturbosch.detekt.DetektPlugin
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.android.test) apply false
alias(libs.plugins.detekt) apply false
alias(libs.plugins.grgit) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.benchmark) apply false
}
allprojects {
apply<DetektPlugin>()
configure<DetektExtension> {
buildUponDefaultConfig = true
config.setFrom("$rootDir/detekt/detekt.yml")
baseline = file("$rootDir/detekt/baseline.xml")
}
dependencies {
add("detektPlugins", rootProject.libs.detekt.formatting)
}
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
exclude("**/reaper/sample/stress/**")
}