-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
28 lines (25 loc) · 1.12 KB
/
build.gradle
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
plugins {
id 'com.android.application' version "${android_gradle_plugin_version}" apply false
id 'com.android.library' version "${android_gradle_plugin_version}" apply false
id 'org.jetbrains.kotlin.android' version "${kotlin_version}" apply false
id "com.diffplug.spotless" version "${spotless_version}"
id "io.gitlab.arturbosch.detekt" version "${detekt_version}" apply false
id "org.jetbrains.kotlin.kapt" version "${kotlin_version}" apply false
id 'androidx.navigation.safeargs.kotlin' version "${navigation_version}" apply false
id 'org.jetbrains.kotlin.plugin.serialization' version "${kotlin_version}" apply false
id "com.star-zero.gradle.githook" version "${githooks_version}"
}
ext {
gradleScriptsDir = layout.projectDirectory.dir('gradle')
}
allprojects {
// Delete all subproject build directories when "clean" task is run
afterEvaluate {
task cleanBuildDir { task ->
delete "${task.project.name}/${buildDir}"
}
clean.doFirst { cleanBuildDir }
}
}
apply from: "$gradleScriptsDir/spotless.gradle"
apply from: "$gradleScriptsDir/githooks.gradle"