-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
66 lines (54 loc) · 1.23 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
58
59
60
61
62
63
64
65
66
import io.gitlab.arturbosch.detekt.Detekt
plugins {
id(Plugins.detekt).version(Versions.detekt_plugin)
}
buildscript {
repositories {
google()
jcenter()
maven(url = "https://plugins.gradle.org/m2/")
}
dependencies {
classpath(Plugins.android_gradle_plugin)
classpath(Plugins.kotlin_gradle_plugin)
classpath(Plugins.ktlint_plugin)
classpath(Plugins.dex_count_plugin)
}
}
allprojects {
repositories {
google()
jcenter()
}
}
subprojects {
apply {
plugin(Plugins.detekt)
plugin(Plugins.ktlint)
}
tasks.withType<Detekt>().configureEach {
exclude("resources/")
exclude(".*build.*")
exclude(".*/tmp/.*")
}
detekt {
config = files("$rootDir/qa/detekt.yml")
parallel = true
autoCorrect = true
reports {
xml {
enabled = true
destination = file("build/reports/detekt.xml")
}
html {
enabled = true
destination = file("build/reports/detekt.html")
}
}
}
}
tasks {
val clean by registering(Delete::class) {
delete(buildDir)
}
}