-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
49 lines (42 loc) · 956 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
39
40
41
42
43
44
45
46
47
48
49
buildscript {
repositories {
google()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.2")
classpath(kotlin("gradle-plugin:1.5.21"))
}
}
plugins {
id("org.jlleitschuh.gradle.ktlint").version("10.1.0")
id("io.gitlab.arturbosch.detekt").version("1.17.1")
}
allprojects {
apply {
plugin("org.jlleitschuh.gradle.ktlint")
plugin("io.gitlab.arturbosch.detekt")
}
repositories {
google()
jcenter()
maven("https://jitpack.io")
}
}
detekt {
parallel = true
input = files(
"src/main/java",
"src/test/kotlin",
"src/androidTest/java",
"src/main/kotlin",
"src/test/java",
"src/androidTest/kotlin",
)
}
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
android.set(true)
}
task("quality") {
group = "verification"
dependsOn("ktlintCheck", "detekt", ":app:lint")
}