Skip to content

Instantly share code, notes, and snippets.

@ucguy4u
Last active May 1, 2024 19:52
Show Gist options
  • Save ucguy4u/b0a1ba78ac0e83a28ed10364ee120461 to your computer and use it in GitHub Desktop.
Save ucguy4u/b0a1ba78ac0e83a28ed10364ee120461 to your computer and use it in GitHub Desktop.
jacocoTestReport in Gradle 7 vs Gradle 8+
plugins {
id 'java'
...
id 'jacoco'
id 'jacoco-report-aggregation'
}
group = 'com.developerscoffee'
version = '1.0.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
dependencies {
...
annotationProcessor 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.2.Final'
}
test {
useJUnitPlatform()
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}
test.finalizedBy jacocoTestReport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment