-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle.kts
62 lines (52 loc) · 1.5 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
59
60
61
62
import io.gitlab.arturbosch.detekt.*
plugins {
kotlin("multiplatform") version "1.7.20" apply false
kotlin("plugin.serialization") version "1.7.20" apply false
id("org.jetbrains.compose") version "1.2.1" apply false
id("app.cash.sqldelight") version "2.0.0-alpha04" apply false
id("com.android.application") version "7.3.1" apply false
id("com.google.cloud.tools.jib") version "3.3.1" apply false
id("app.cash.licensee") version "1.6.0" apply false
id("org.jetbrains.kotlinx.kover") version "0.6.1"
id("io.gitlab.arturbosch.detekt") version "1.21.0"
}
// https://issuetracker.google.com/issues/240445963
buildscript {
dependencies {
classpath("org.apache.commons:commons-compress:1.22")
}
}
allprojects {
repositories {
mavenCentral()
google()
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
detekt {
source = files(rootProject.rootDir)
parallel = true
autoCorrect = true
buildUponDefaultConfig = true
}
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.21.0")
}
tasks {
fun SourceTask.config() {
include("**/*.kt")
exclude("**/*.kts")
exclude("**/resources/**")
exclude("**/generated/**")
exclude("**/build/**")
}
withType<DetektCreateBaselineTask>().configureEach {
config()
}
withType<Detekt>().configureEach {
config()
reports {
sarif.required.set(true)
}
}
}