-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
38 lines (35 loc) · 907 Bytes
/
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
plugins {
id(BuildPlugins.androidApplication) version BuildVersions.agp apply false
id(BuildPlugins.kotlinAndroid) version BuildVersions.kotlin apply false
id(BuildPlugins.hilt) version BuildVersions.hilt apply false
id(BuildPlugins.detekt) version BuildVersions.detekt
id(BuildPlugins.ktlintGradle) version BuildVersions.ktlintGradle
}
allprojects {
repositories {
google()
jcenter()
}
}
subprojects {
apply {
plugin(BuildPlugins.ktlintGradle)
plugin(BuildPlugins.detekt)
}
ktlint {
version.set(Versions.ktlint)
verbose.set(true)
android.set(true)
}
detekt {
reports {
html {
enabled = true
destination = file("build/reports/detekt.html")
}
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}