-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (37 loc) · 1.06 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(Config.BuildScriptPlugins.ANDROID_GRADLE)
classpath(Config.BuildScriptPlugins.KOTLIN_GRADLE)
}
}
plugins {
id(Config.ApplyPlugins.KT_LINT) version Config.KTLINT_GRADLE_VERSION
id(Config.ApplyPlugins.MAVEN_PUBLISH)
}
allprojects {
repositories {
google()
mavenCentral()
maven(url = "https://jitpack.io")
}
}
subprojects {
apply(plugin = Config.ApplyPlugins.KT_LINT)
// See README.md for more info on ktlint as well as https://github.com/JLLeitschuh/ktlint-gradle#configuration
ktlint {
version.set(Config.KTLINT_VERSION)
debug.set(true) // useful for debugging
verbose.set(true) // useful for debugging
android.set(true)
outputToConsole.set(true)
ignoreFailures.set(false)
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}