Slackbot
03/20/2023, 7:54 PMVampire
03/20/2023, 11:11 PMClass.forName...
?Vampire
03/20/2023, 11:12 PMtasks.configureEach { ... }
and in there compare the parent class name with your stringZak Taccardi
03/20/2023, 11:13 PMClass.forName
) actually did not work! even though Class.forName("..")
finds the class
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")
}
Vampire
03/20/2023, 11:17 PMClass.forName
one comes from a different class loader than the one the tasks are made of.