-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (40 loc) · 1.23 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
group = "no.ssb.kostra"
repositories { mavenCentral() }
plugins {
kotlin("jvm") version libs.versions.kotlin
id("org.sonarqube") version "6.0.1.5171"
jacoco
}
sonarqube {
properties {
property("sonar.organization", "statisticsnorway")
property("sonar.projectKey", "statisticsnorway_kostra-kontrollprogram-parent")
property("sonar.host.url", "https://sonarcloud.io")
property(
"sonar.exclusions", """
**/Application.kt,
**/node_modules/**/*,
**/KostraRecordExtensionsGenerics.kt,
**/KostraKontrollprogramCommand.kt,
**/MappingToConsoleAppExtensions.kt,
**/kostra/barnevern/**/*
""".trimIndent()
)
}
}
subprojects {
if (name != "kostra-kontrollprogram-web-frontend") {
apply(plugin = "kotlin")
apply(plugin = "jacoco")
kotlin { jvmToolchain(21) }
repositories { mavenCentral() }
tasks.test {
useJUnitPlatform()
jvmArgs("-Xshare:off", "-XX:+EnableDynamicAgentLoading")
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports { xml.required = true }
}
}
}