Last active
May 1, 2024 19:52
-
-
Save ucguy4u/b0a1ba78ac0e83a28ed10364ee120461 to your computer and use it in GitHub Desktop.
jacocoTestReport in Gradle 7 vs Gradle 8+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment