Closed nuhkoca closed 1 month ago
Hi, according to Gradle's recommendations, you should avoid explicitly creating Provider instance.
if you use convention plugin, then you need to declare the extension in it with property of type Propety<String>
, like
interface MyExtension {
// comma separated string exclusion
val exclusions: Property<String>
}
below, when configuring Kover from a comma-separated single string, you need to get Provider of a collection of strings, like
kover {
reports {
filters {
exludes {
classes(myExtension.exclusions.map { it.split(",") })
}
}
}
}
Closed as answered. Feel free to create new issue if you have any additional questions.
Hello,
I came across the new migration guide for the version
0.8.0
and Lazy configuration section caught my attention as I use conventional plugins in our project and would like to more about how to create aProvider
for exclusions e.g. how to createclassProvider
for a comma separated string exclusion?