-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
51 lines (47 loc) · 1.56 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
dependencies {
classpath(BuildPlugins.TOOLS_BUILD_GRADLE)
classpath(BuildPlugins.KOTLIN_GRADLE_PLUGIN)
classpath(Dependencies.Navigation.SAFE_ARGS_PLUGIN)
classpath(Dependencies.Dagger.HILT_PLUGIN)
classpath(BuildPlugins.VERSIONS_PLUGIN)
classpath(BuildPlugins.DETEKT_PLUGIN)
}
}
plugins {
id(BuildPlugins.ANDROID_LIBRARY)
.version(ProjectProperties.ANDROID_VERSION)
.apply(false)
id(BuildPlugins.ANDROID_APPLICATION)
.version(ProjectProperties.ANDROID_VERSION)
.apply(false)
id(BuildPlugins.JETBRAINS_KOTLIN_ANDROID)
.version(ProjectProperties.KOTLIN_VERSION)
.apply(false)
id(BuildPlugins.KTLINT)
.version(Versions.KTLINT_PLUGIN)
.apply(false)
id(BuildPlugins.DETEKT)
.version(Versions.DETEKT)
}
apply(from = BuildScripts.HOOKS)
subprojects {
apply(from = "${rootProject.projectDir}/${BuildScripts.KTLINT}")
apply(from = "${rootProject.projectDir}/${BuildScripts.VERSIONS}")
}
tasks {
val detektAll by registering(io.gitlab.arturbosch.detekt.Detekt::class) {
parallel = true
setSource(files(projectDir))
include("**/*.kt")
include("**/*.kts")
exclude("**/resources/**")
exclude("**/build/**")
config.setFrom(files("$rootDir/config/detekt/detekt.yml"))
buildUponDefaultConfig = false
}
}
task<Delete>("clean") {
delete = setOf(rootProject.buildDir)
}