-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
54 lines (46 loc) · 1.1 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
import io.gitlab.arturbosch.detekt.*
/*
* Copyright 2020-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2021 hfhbd and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
plugins {
id("org.jetbrains.kotlinx.binary-compatibility-validator")
id("org.jetbrains.dokka")
id("io.gitlab.arturbosch.detekt")
}
dependencies {
for (sub in subprojects) {
dokka(sub)
}
}
dokka {
dokkaPublications.configureEach {
includes.from("README.md")
}
}
detekt {
source.from(fileTree(rootProject.rootDir) {
include("**/*.kt")
exclude("**/*.kts")
exclude("**/resources/**")
exclude("**/generated/**")
exclude("**/build/**")
})
parallel = true
autoCorrect = true
}
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:${detekt.toolVersion}")
}
tasks {
withType<Detekt>().configureEach {
reports {
sarif.required.set(true)
}
}
}
apiValidation {
klib {
enabled = true
}
}