createVariant

abstract fun createVariant(variantName: String, config: Action<KoverMergingVariantCreate>)(source)

Create custom report variant with name variantName in all included projects.

For more information about the settings, see KoverCurrentProjectVariantsConfig.createVariant.

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.

createVariant("custom") {
if (project.plugins.hasPlugin("kotlin")) {
add("jvm")
}
}