Add jacoco report gradle plugin

This commit is contained in:
Luck 2023-08-05 09:49:56 +01:00
parent 8fbd79139d
commit 6d8b6bd3fe
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
2 changed files with 11 additions and 0 deletions

View File

@ -1,11 +1,16 @@
plugins {
id("java-library")
id("jacoco")
}
test {
useJUnitPlatform {}
}
jacocoTestReport {
dependsOn test
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.1'

View File

@ -1,5 +1,7 @@
plugins {
alias(libs.plugins.shadow)
id("jacoco")
id("jacoco-report-aggregation")
}
sourceCompatibility = 17
@ -13,6 +15,10 @@ test {
}
}
jacocoTestReport {
dependsOn test
}
dependencies {
implementation project(':common')
compileOnly project(':common:loader-utils')