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.
gradle
Toggle table of contents
9.9.3
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
gradle
/
org.gradle.testing.jacoco.plugins
/
JacocoPluginExtension
Jacoco
Plugin
Extension
API
abstract
class
JacocoPluginExtension
(
source
)
Extension including common properties and methods for Jacoco.
Since
1.6
Members
Constructors
Jacoco
Plugin
Extension
Link copied to clipboard
API
@
Inject
constructor
(
project
:
Project
,
agent
:
JacocoAgentJar
)
Creates a Jacoco plugin extension.
Properties
TASK_
EXTENSION_
NAME
Link copied to clipboard
API
val
TASK_EXTENSION_NAME
:
String
=
"jacoco"
The task extension name.
tool
Version
Link copied to clipboard
API
open
var
toolVersion
:
String
Functions
apply
To
Link copied to clipboard
API
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.
get
Reports
Directory
Link copied to clipboard
API
abstract
fun
getReportsDirectory
(
)
:
DirectoryProperty
The directory where reports will be generated.