Extension including common properties and methods for Jacoco.
| Type | Name and description |
|---|---|
static String |
TASK_EXTENSION_NAME |
Logger |
logger |
File |
reportsDirThe directory where reports will be generated. |
String |
toolVersionVersion of Jacoco JARs to use. |
| Constructor and description |
|---|
JacocoPluginExtension
(Project project, org.gradle.internal.jacoco.JacocoAgentJar agent)Creates a Jacoco plugin extension. |
| Type | Name and description |
|---|---|
void |
applyTo(JavaForkOptions task)Applies Jacoco to the given task. |
void |
applyTo(TaskCollection tasks)Applies Jacoco to all of the given tasks. |
The directory where reports will be generated.
Version of Jacoco JARs to use.
Creates a Jacoco plugin extension.
project - the project the extension is attached toagent - the agent JAR to be used by JacocoApplies Jacoco to the given task. Configuration options will be provided on a task extension named TASK_EXTENSION_NAME. Jacoco will be run as an agent during the execution of the task.
task - the task to apply Jacoco to.Applies Jacoco to all of the given tasks.
tasks - the tasks to apply Jacoco toGradle API 2.13