com.bmuschko.gradle.clover.CloverSourceSet.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-clover-plugin Show documentation
Show all versions of gradle-clover-plugin Show documentation
Gradle plugin for generating a code coverage report using Clover.
The newest version!
package com.bmuschko.gradle.clover
import java.util.concurrent.Callable
import org.gradle.api.file.FileCollection
import groovy.transform.CompileStatic
import groovy.transform.ToString
@CompileStatic
@ToString
class CloverSourceSet implements Serializable {
static final long serialVersionUID = 1L
CloverSourceSet(boolean groovy = false) {
this.groovy = groovy
}
Collection srcDirs = new HashSet()
File classesDir
void setClassesDir(File classesDir) {
this.classesDir = classesDir
this.backupDir = new File("${classesDir}-bak")
}
private File backupDir
File getBackupDir() {
backupDir
}
private boolean groovy
boolean isGroovy() {
groovy
}
void setGroovy(boolean groovy) {
this.groovy = groovy
}
private transient Callable classpathProvider
FileCollection getCompileClasspath() {
return classpathProvider.call()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy