-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
44 lines (38 loc) · 1.43 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
plugins {
java
jacoco
`jacoco-report-aggregation`
alias(libs.plugins.sonarqube)
}
allprojects {
apply(plugin = "com.mattbertolini.buildlogic.project-conventions")
group = "com.mattbertolini"
version = "0.7.0-SNAPSHOT"
}
val rootJacocoDir = "reports/jacoco/testCodeCoverageReport"
val coverageReportFileName = "testCodeCoverageReport.xml"
val reportXmlFile = rootProject.layout.buildDirectory.file("$rootJacocoDir/$coverageReportFileName")
reporting {
reports {
named<JacocoCoverageReport>("testCodeCoverageReport") {
testType.set(TestSuiteType.UNIT_TEST)
}
}
}
dependencies {
jacocoAggregation(project(":docs"))
jacocoAggregation(project(":integration-tests"))
jacocoAggregation(project(":spring-annotated-data-binder-core"))
jacocoAggregation(project(":spring-webflux-annotated-data-binder"))
jacocoAggregation(project(":spring-webmvc-annotated-data-binder"))
jacocoAggregation(project(":webflux-annotated-data-binder-spring-boot-starter"))
jacocoAggregation(project(":webmvc-annotated-data-binder-spring-boot-starter"))
}
sonar {
properties {
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.organization", "github-mattbertolini")
property("sonar.projectKey", "mattbertolini_spring-annotated-web-data-binder")
property("sonar.coverage.jacoco.xmlReportPaths", reportXmlFile.map { it.asFile.path }.get())
}
}