-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (37 loc) · 926 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id(Deps.detektPlugin).version(Deps.detektPluginVersion)
id(Deps.spotlessPlugin).version(Deps.spotlessPluginVersion) apply true
}
buildscript {
repositories {
google()
}
dependencies {
classpath(Deps.androidGradlePlugin)
classpath(Deps.kotlinGradlePlugin)
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
detekt {
toolVersion = Deps.detektPluginVersion
config.from("config/detekt/detekt.yml")
buildUponDefaultConfig = true
}
spotless {
lineEndings = com.diffplug.spotless.LineEnding.UNIX
isEnforceCheck = false
kotlin {
target("**/*.kt")
ktlint().editorConfigOverride(mapOf("disabled_rules" to "package-name"))
}
kotlinGradle {
target("**/*.kts")
ktlint()
}
}