Adding jacocoTestReport
@@ -11,6 +11,7 @@ buildscript {
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
+apply plugin: 'jacoco'
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
tasks.withType(GroovyCompile) { options.encoding = 'UTF-8' }
@@ -44,6 +45,10 @@ dependencies {
springBoot { mainClass = 'com.blackducksoftware.integration.hub.packman.Application' }
+jacocoTestReport {
+ reports { xml.enabled = true }
+}
+
task produceFinalZip(type: Zip, dependsOn: build) {
from("${buildDir}/libs") { include '*.jar' into 'lib'}
}
