generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
43 lines (37 loc) · 1.25 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
plugins {
//trick: for the same plugin versions in all sub-modules
id(Plugins.ANDROID_APPLICATION) version Versions.GRADLE apply (false)
id(Plugins.ANDROID_LIBRARY) version Versions.GRADLE apply (false)
id(Plugins.DETEKT) version Versions.DETEKT
id(Plugins.KOVER) version Versions.KOVER
id(Plugins.KSP) version Versions.KSP
id(Plugins.BUILD_KONFIG) version Versions.BUILD_KONFIG apply (false)
kotlin(Plugins.ANDROID) version Versions.KOTLIN apply (false)
kotlin(Plugins.MULTIPLATFORM) version Versions.KOTLIN apply (false)
kotlin(Plugins.KOTLIN_SERIALIZATION) version Versions.KOTLIN
}
detekt {
toolVersion = Versions.DETEKT
config.setFrom("detekt.yml")
source.setFrom(
"android/src",
"shared/src"
)
parallel = false
buildUponDefaultConfig = false
disableDefaultRuleSets = false
debug = false
ignoreFailures = false
ignoredBuildTypes = listOf("release")
ignoredFlavors = listOf("production")
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
jvmTarget = JavaVersion.VERSION_11.toString()
reports {
html.required.set(true)
xml.required.set(true)
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}