what's the "right "way to get the `check` task usi...
# community-support
c
what's the "right "way to get the
check
task using the java api? by name? so
Copy code
project.tasks.check.configure {
  dependsOn(tasks.withType<JacocoCoverageVerification>())
}
becomes
Copy code
tasks.named("check", task -> task.dependsOn(tasks.withType(JacocoReport.class)));
or is there a typed version? (I kinda hate strings 😉 , strings are weakly typed, except in typescript which has some interesting type enforcement for strings like "check", even then, probably weakly typed)