-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
57 lines (50 loc) · 1.5 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("org.jlleitschuh.gradle.ktlint") version BuildPluginsVersion.KTLINT
}
buildscript {
repositories {
google()
jcenter()
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath("com.android.tools.build:gradle:${BuildPluginsVersion.AGP}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${BuildPluginsVersion.KOTLIN}")
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:${Versions.NAVIGATION}")
}
}
allprojects {
repositories {
google()
jcenter()
}
}
subprojects {
apply {
plugin("org.jlleitschuh.gradle.ktlint")
}
ktlint {
version.set(Versions.KTLINT)
debug.set(true)
verbose.set(true)
android.set(false)
outputToConsole.set(true)
outputColorName.set("RED")
ignoreFailures.set(true)
enableExperimentalRules.set(true)
additionalEditorconfigFile.set(file(".editorconfig"))
disabledRules.set(setOf("final-newline"))
reporters {
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.PLAIN)
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE)
}
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
}
tasks.register("clean", Delete::class.java) {
delete(rootProject.buildDir)
}