@Incubating open class JacocoPluginExtension
Extension including common properties and methods for Jacoco.
JacocoPluginExtension(project: Project, agent: JacocoAgentJar)
Creates a Jacoco plugin extension. |
static val TASK_EXTENSION_NAME: String |
open fun <T> applyTo(task: T): Unit where T : Task, T : JavaForkOptions
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. open fun <T> applyTo(tasks: TaskCollection<T>): Unit where T : Task, T : JavaForkOptions
Applies Jacoco to all of the given tasks. |
|
open fun getReportsDir(): File
The directory where reports will be generated. |
|
open fun getToolVersion(): String
Version of Jacoco JARs to use. |
|
open fun setReportsDir(reportsDir: Provider<File>): Unit
Set the provider for calculating the report directory. open fun setReportsDir(reportsDir: File): Unit |
|
open fun setToolVersion(toolVersion: String): Unit |
val JacocoPluginExtension.ext: ExtraPropertiesExtension
Retrieves the ext extension. |
fun JacocoPluginExtension.ext(configure: ExtraPropertiesExtension.() -> Unit): Unit
Configures the ext extension. |