-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle.kts
49 lines (41 loc) · 959 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
import org.jlleitschuh.gradle.ktlint.BaseKtlintCheckTask
import org.jlleitschuh.gradle.ktlint.KtlintFormatTask
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
ktlint
}
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21")
}
}
allprojects {
repositories {
google()
jcenter()
}
}
ktlint {
version.set("0.36.0")
android.set(true)
filter {
exclude("**/build/**")
exclude("**/resources/**")
exclude("**/generated/**")
}
reporters {
reporter(ReporterType.PLAIN)
reporter(ReporterType.HTML)
}
}
tasks.withType<KtlintFormatTask> {
setSource(files(rootDir))
}
tasks.withType<BaseKtlintCheckTask> {
setSource(files(rootDir))
}