-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
50 lines (41 loc) · 1.43 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:${Version.Plugin.agp}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Version.Kotlin.stdlib}")
classpath("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${Version.Plugin.detekt}")
classpath("com.google.dagger:hilt-android-gradle-plugin:${Version.Plugin.hilt}")
classpath("de.mannodermaus.gradle.plugins:android-junit5:1.7.1.1")
}
}
subprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
dependencies {
"detekt"("io.gitlab.arturbosch.detekt:detekt-formatting:${Version.Plugin.detekt}")
"detekt"("io.gitlab.arturbosch.detekt:detekt-cli:${Version.Plugin.detekt}")
}
configure<io.gitlab.arturbosch.detekt.extensions.DetektExtension> {
toolVersion = Version.Plugin.detekt
config = rootProject.files("config/detekt.yml")
ignoredBuildTypes = listOf("release")
ignoredFlavors = listOf("release")
reports {
html {
enabled = true
}
xml {
enabled = false
}
txt {
enabled = false
}
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}