-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle.kts
49 lines (44 loc) Β· 1.78 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
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.jetbrainsCompose) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.build.config) apply false
alias(libs.plugins.sonarqube) apply true
alias(libs.plugins.kover) apply true
}
sonar {
properties {
property("sonar.projectKey", "dautovicharis_Charts")
property("sonar.organization", "dautovicharis")
property("sonar.host.url", "https://sonarcloud.io/")
property(
"sonar.coverage.jacoco.xmlReportPaths",
"${project.rootDir}/charts/build/reports/kover/report.xml," +
"${project.rootDir}/app/build/reports/kover/report.xml"
)
property("sonar.coverage.exclusions", "**/preview/**")
}
}
tasks.register("chartsTest") {
group = "Charts"
description = "Relevant tests for the charts project"
dependsOn("charts:iosX64Test")
dependsOn("charts:connectedAndroidTest")
dependsOn("charts:jsTest")
dependsOn("charts:jvmTest")
tasks.findByName("charts:connectedAndroidTest")?.mustRunAfter("charts:iosX64Test")
tasks.findByName("charts:jsTest")?.mustRunAfter("charts:connectedAndroidTest")
tasks.findByName("charts:jvmTest")?.mustRunAfter("charts:jsTest")
}
tasks.register("chartsCheck") {
group = "Charts"
description = "Build, tests, coverage report and sonar analysis for the charts project"
dependsOn("build")
dependsOn("chartsTest")
dependsOn("charts:koverXmlReport")
dependsOn("sonar")
tasks.findByName("chartsTest")?.mustRunAfter("build")
tasks.findByName("charts:koverXmlReport")?.mustRunAfter("chartsTest")
tasks.findByName("sonar")?.mustRunAfter("charts:koverXmlReport")
}