generated from greyhairredbear/android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
63 lines (53 loc) · 1.4 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
plugins {
id(Plugins.ANDROID_APPLICATION) version BuildPluginsVersions.ANDROID_GRADLE_PLUGIN apply false
kotlin(Plugins.ANDROID) version BuildPluginsVersions.KOTLIN apply false
id(Plugins.DETEKT) version BuildPluginsVersions.DETEKT
}
buildscript {
repositories {
google()
}
dependencies {
classpath(Plugins.ANDROID_GRADLE_PLUGIN)
classpath(Plugins.KOTLIN_GRADLE_PLUGIN)
classpath(Plugins.HILT_ANDROID_GRADLE_PLUGIN)
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
apply("config/git-hooks/gitHooks.gradle.kts")
apply("config/git-hooks/preCommit.gradle.kts")
allprojects {
group = PUBLISHING_GROUP
repositories {
google()
mavenCentral()
}
tasks.withType<Test> {
useJUnitPlatform()
}
}
subprojects {
apply {
plugin(Plugins.DETEKT)
}
detekt {
allRules = false
buildUponDefaultConfig = true
config = rootProject.files("config/detekt/detekt.yml")
reports {
html.enabled = true
xml.enabled = true
txt.enabled = true
}
}
}
tasks.register("clean").configure {
delete("build")
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>() {
include("**/*.kt")
include("**/*.kts")
exclude("**/resources/**")
exclude("**/build/**")
}