diff --git a/insurance-calculator-app/build.gradle b/insurance-calculator-app/build.gradle index 8642862..ea5d929 100644 --- a/insurance-calculator-app/build.gradle +++ b/insurance-calculator-app/build.gradle @@ -4,6 +4,7 @@ plugins { id 'maven-publish' id 'com.palantir.docker' version '0.36.0' id 'checkstyle' + id 'jacoco' } checkstyle { @@ -122,3 +123,15 @@ docker { tasks.named('dockerPrepare').configure { dependsOn bootJar // Explicit dependency on bootJar } + +jacoco { + toolVersion = "0.8.12" +} + +jacocoTestReport { + dependsOn test + reports { + xml.required.set(true) + html.required.set(true) + } +}