-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
46 lines (42 loc) · 1.16 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
plugins {
kotlin("multiplatform") version libs.versions.kotlin.asProvider().get() apply false
alias(libs.plugins.spotless)
alias(libs.plugins.mavenPublish) apply false
alias(libs.plugins.kotlin.kover)
}
repositories {
mavenCentral()
}
subprojects {
apply(plugin = rootProject.libs.plugins.spotless.get().pluginId)
apply(plugin = rootProject.libs.plugins.kotlin.kover.get().pluginId)
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
target("**/*.kt")
targetExclude("$buildDir/**/*.kt")
targetExclude("bin/**/*.kt")
ktlint()
licenseHeaderFile(rootProject.file("spotless/copyright.kt"))
}
kotlinGradle {
target("**/*.gradle.kts")
ktlint()
}
}
}
koverMerged {
enable()
filters {
projects {
excludes += listOf("example")
}
}
xmlReport {
onCheck.set(true)
reportFile.set(layout.buildDirectory.file("coverageReport/coverage.xml"))
}
htmlReport {
onCheck.set(true)
reportDir.set(layout.buildDirectory.dir("coverageReport/html"))
}
}