diff --git a/uhabits-core/build.gradle b/uhabits-core/build.gradle index 9cb41dc49..fc0189b05 100644 --- a/uhabits-core/build.gradle +++ b/uhabits-core/build.gradle @@ -1,4 +1,5 @@ apply plugin: 'java' +apply plugin: 'jacoco' dependencies { @@ -22,5 +23,14 @@ dependencies { compile 'junit:junit:4.12' } +jacocoTestReport { + reports { + xml.enabled = true + html.enabled = true + } +} + +check.dependsOn jacocoTestReport + sourceCompatibility = "1.8" targetCompatibility = "1.8"