-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
47 lines (39 loc) · 1.22 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
46
47
import io.gitlab.arturbosch.detekt.Detekt
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.lint) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.ktlint)
alias(libs.plugins.detekt)
alias(libs.plugins.compose.compiler) apply false
}
val clean by tasks.registering(Delete::class) {
delete(rootProject.layout.buildDirectory.asFile)
}
allprojects {
group = "app.banafsh"
version = "0.1.0"
apply(plugin = "org.jlleitschuh.gradle.ktlint")
apply(plugin = "io.gitlab.arturbosch.detekt")
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
reporters {
reporter(ReporterType.PLAIN)
reporter(ReporterType.HTML)
}
}
detekt {
buildUponDefaultConfig = true
allRules = false
config.setFrom("$rootDir/detekt.yml")
}
tasks.withType<Detekt>().configureEach {
jvmTarget = "17"
reports {
html.required = true
}
}
}