Extension including common properties and methods for Jacoco.
| Constructor and description |
|---|
JacocoPluginExtension
(Project project, 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.2-20140924021627+0000