-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (48 loc) · 1.14 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
58
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
val kotlinVersion = "1.5.31"
extra["kotlinVersion"] = kotlinVersion
classpath("com.android.tools.build:gradle:4.2.2")
classpath(kotlin("gradle-plugin", version = kotlinVersion))
classpath("android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0")
}
}
plugins {
id("io.gitlab.arturbosch.detekt") version "1.18.1"
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
ktlint {
debug.set(false)
}
}
detekt {
toolVersion = "1.18.0"
config = files("config/detekt-config.yml")
allRules = true
autoCorrect = true
source = files("app/src/main/java", "app/src/main/kotlin")
reports {
html {
enabled = true
destination = file("app/build/detekt/detekt.html")
}
}
}
tasks.detekt {
this.jvmTarget = "1.8"
}
allprojects {
repositories {
google()
mavenCentral()
}
}
tasks.register<Delete>("clean") {
delete(rootProject.buildDir)
}