forked from flipperdevices/Flipper-Android-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
39 lines (34 loc) · 1.01 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
plugins {
id("com.android.application") apply false
id("com.android.library") apply false
kotlin("android") apply false
id("io.gitlab.arturbosch.detekt") version GradlePlugins.DETEKT
id("org.jlleitschuh.gradle.ktlint") version GradlePlugins.KTLINT
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
subprojects {
apply {
plugin("io.gitlab.arturbosch.detekt")
plugin("org.jlleitschuh.gradle.ktlint")
}
ktlint {
version.set(Versions.KTLINT)
android.set(true)
verbose.set(true)
outputToConsole.set(true)
ignoreFailures.set(false)
enableExperimentalRules.set(true)
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
detekt {
config = rootProject.files("config/detekt/detekt.yml")
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}