currentProject

Customize report variants shared by the current project.

A report variant is a set of information used to generate a reports, namely: project classes, a list of Gradle test tasks, classes that need to be excluded from instrumentation.

currentProject {
// create report variant with custom name,
// in which it is acceptable to add information from other variants of the current project, as well as `kover` dependencies
createVariant("custom") {
// ...
}

// copy report variant with different name but the same content
copyVariant("copyName", "custom")

// Configure the variant that is automatically created in the current project
// For example, "jvm" for JVM target or "debug" for Android build variant
providedVariant("jvm") {
// ...
}

// Configure the variant for all the code that is available in the current project.
// This variant always exists for any type of project.
totalVariant {
// ...
}
}

Instance to configuring of report variants shared by the current project.

See details in currentProject.