|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.ajoberstar.gradle.jacoco.plugins.JacocoPluginExtension
@Slf4j class JacocoPluginExtension
Extension including common properties and methods for Jacoco.
Field Summary | |
---|---|
protected Project |
project
|
Property Summary | |
---|---|
static java.lang.String |
TASK_EXTENSION_NAME
|
java.lang.String |
toolVersion
Version of Jacoco JARs to use. |
Constructor Summary | |
JacocoPluginExtension(Project project, JacocoAgentJar agent)
Creates a Jacoco plugin extension. |
Method Summary | |
---|---|
void
|
applyTo(JavaForkOptions task)
Applies Jacoco to the given task. |
void
|
applyTo(TaskCollection tasks)
Applies Jacoco to all of the given tasks. |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected final Project project
Property Detail |
---|
static final java.lang.String TASK_EXTENSION_NAME
java.lang.String toolVersion
Constructor Detail |
---|
JacocoPluginExtension(Project project, JacocoAgentJar agent)
project
- the project the extension is attached toagent
- the agent JAR to be used by Jacoco
Method Detail |
---|
void applyTo(JavaForkOptions task)
task
- the task to apply Jacoco to.
void applyTo(TaskCollection tasks)
tasks
- the tasks to apply Jacoco to
Groovy Documentation