jacoco { toolVersion = "0.8.2" } jacocoTestReport { reports { xml.enabled true html.enabled true } } tasks.check.dependsOn 'jacocoTestReport'