-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (36 loc) · 1.02 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
plugins {
id("com.android.application") apply false
id("com.android.library") apply false
kotlin("android") apply false
id("dagger.hilt.android.plugin") version "2.37" apply false
id("com.google.gms.google-services") version "4.3.8" apply false
id("androidx.navigation.safeargs") version "2.3.5" apply false
id("io.gitlab.arturbosch.detekt") version "1.17.0"
}
subprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
detekt {
toolVersion = "1.17.0"
config = files("$rootDir/config/detekt/detekt.yml")
buildUponDefaultConfig = true
allRules = true
reports {
html {
enabled = true
destination = file("$rootDir/reports/detekt/detekt.html")
}
}
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
jvmTarget = "1.8"
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}