JacocoPluginExtension

API Documentation:JacocoPluginExtension

Extension including common properties and methods for Jacoco.

Properties

PropertyDescription
reportsDirectory

The directory where reports will be generated.

toolVersion

Version of Jacoco JARs to use.

Methods

MethodDescription
applyTo(task)

Applies Jacoco to the given task. Configuration options will be provided on a task extension named 'jacoco'. Jacoco will be run as an agent during the execution of the task.

applyTo(tasks)

Applies Jacoco to all of the given tasks.

Script blocks

No script blocks

Property details

DirectoryProperty reportsDirectory

The directory where reports will be generated.

Default:
${project.reporting.baseDir}/jacoco

String toolVersion

Version of Jacoco JARs to use.

Default:
0.8.11

Method details

void applyTo(T task)

Applies Jacoco to the given task. Configuration options will be provided on a task extension named 'jacoco'. Jacoco will be run as an agent during the execution of the task.

void applyTo(TaskCollection<T> tasks)

Applies Jacoco to all of the given tasks.