-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
39 lines (34 loc) · 1.17 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
plugins {
alias(libs.plugins.multiplatform).apply(false)
alias(libs.plugins.compose).apply(false)
alias(libs.plugins.cocoapods).apply(false)
alias(libs.plugins.android.application).apply(false)
alias(libs.plugins.kotlinx.parcelize).apply(false)
alias(libs.plugins.kotlinx.serialization).apply(false)
alias(libs.plugins.libres).apply(false)
alias(libs.plugins.sqlDelight).apply(false)
id("io.gitlab.arturbosch.detekt") version "1.22.0"
}
detekt {
buildUponDefaultConfig = true
allRules = false
source = files("$projectDir/shared/")
config = files("$projectDir/detekt/base-config.yml")
baseline = file("$projectDir/detekt/baseline.xml")
parallel = true
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
reports {
html.required.set(true)
html.outputLocation.set(file("$projectDir/detekt/reports/detekt.html"))
}
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
jvmTarget = "1.8"
}
tasks.withType<io.gitlab.arturbosch.detekt.DetektCreateBaselineTask>().configureEach {
jvmTarget = "1.8"
}
tasks.register<GradleBuild>("runOnGitHub") {
tasks = listOf("detekt")
}