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