-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
57 lines (48 loc) · 1.56 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
48
49
50
51
52
53
54
55
56
57
import org.jmailen.gradle.kotlinter.tasks.FormatTask
import org.jmailen.gradle.kotlinter.tasks.LintTask
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.detekt) apply false
alias(libs.plugins.kotlinter) apply false
alias(libs.plugins.compose) apply false
alias(libs.plugins.kotlinx.ksp) apply false
}
buildscript {
repositories {
google()
mavenCentral()
}
}
subprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
apply(plugin = "org.jmailen.kotlinter")
tasks {
register("detektAll", io.gitlab.arturbosch.detekt.Detekt::class) {
exclude("**/resources/**")
exclude("**/build/**")
config.setFrom(files("$rootDir/config/detekt/detekt.yml"))
buildUponDefaultConfig = false
parallel = true
// allRules = true
// autoCorrect = true
}
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
parallel = true
//reports are set in config file
}
tasks.withType<LintTask> {
ignoreFailures = true
source(files("src"))
}
tasks.withType<FormatTask> {
}
}
task("clean", Delete::class) {
delete(rootProject.layout.buildDirectory)
}