This message was deleted.
# community-support
s
This message was deleted.
v
Class.forName...
?
Or if you don't like that,
tasks.configureEach { ... }
and in there compare the parent class name with your string
👍 1
z
that (
Class.forName
) actually did not work! even though
Class.forName("..")
finds the class
Copy code
tasks.withType(
    // kotlinx.kover.gradle.plugin.tasks.KoverVerifyTask is internal
    Class.forName("kotlinx.kover.gradle.plugin.tasks.KoverVerifyTask").javaClass as Class<Task>
)
    .configureEach {
        error("this never gets hit")
    }
v
Maybe class loader problem? For example the
Class.forName
one comes from a different class loader than the one the tasks are made of.