For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

JacocoPluginExtension

Extension including common properties and methods for Jacoco.

Since

1.6

Constructors

Link copied to clipboard
@Inject
constructor(project: Project, agent: JacocoAgentJar)
Creates a Jacoco plugin extension.

Properties

Link copied to clipboard
val TASK_EXTENSION_NAME: String = "jacoco"
The task extension name.
Link copied to clipboard

Functions

Link copied to clipboard
open fun <T : Task?, JavaForkOptions?> applyTo(task: T)
Applies Jacoco to the given task.
open fun <T : Task?, JavaForkOptions?> applyTo(tasks: TaskCollection<T>)
Applies Jacoco to all of the given tasks.
Link copied to clipboard
The directory where reports will be generated.