KoverMergingVariantSources

Limit the classes that will be included in the reports for all included projects.

For more information about the settings, see KoverVariantConfig.sources.

This action is executed delayed, just before all tasks are created, at the after evaluate stage. A corresponding project is passed in the argument. Analyzing this project, you can make flexible configurations.

sources {
if (project.name == "projectName") {
excludedSourceSets.add("excluded")
}
}

Properties

Link copied to clipboard
abstract val excludedSourceSets: SetProperty<String>

Exclude source classes of specified source sets from all reports

Link copied to clipboard
abstract val excludeJava: Property<Boolean>

Exclude classes compiled by Java compiler from all reports

Link copied to clipboard
abstract val project: Project

The current project that is being configured.