// clover bits
dependencies {
- cloverCompile 'org.openclover:clover:4.4.1'
if (use_clover) {
+ cloverCompile 'org.openclover:clover:4.4.1'
testCompile 'org.openclover:clover:4.4.1'
}
}
outputs.dir cloverInstrDir
doFirst {
- //delete cloverInstrDir
+ delete cloverInstrDir
def argsList = [
"--initstring",
cloverDb,
com.atlassian.clover.reporters.xml.XMLReporter.runReport(args)
}
}
+
+
+compileCloverJava {
+
+ doFirst {
+ sourceCompatibility = compile_source_compatibility
+ targetCompatibility = compile_target_compatibility
+ options.compilerArgs += additional_compiler_args
+ print ("Setting target compatibility to "+targetCompatibility+"\n")
+ }
+ classpath += configurations.cloverRuntime
+}
+
+
+task cleanClover {
+ doFirst {
+ delete cloverInstrDir
+ delete cloverDb
+ }
+}
// end clover bits
}
-compileCloverJava {
-
- doFirst {
- sourceCompatibility = compile_source_compatibility
- targetCompatibility = compile_target_compatibility
- options.compilerArgs += additional_compiler_args
- print ("Setting target compatibility to "+targetCompatibility+"\n")
- }
- classpath += configurations.cloverRuntime
-}
-
-
clean {
doFirst {
delete sourceSets.main.java.outputDir
}
-task cleanClover {
- doFirst {
- delete cloverInstrDir
- delete cloverDb
- }
-}
-
-
cleanTest {
dependsOn cleanClover
doFirst {