how do i convert GroovyDSL ```task integrationTest...
# gradle
s
how do i convert GroovyDSL
Copy code
task integrationTest(type: Test) {
    useJUnit {
        include '**/*IntegrationTest.class'
    }
}
to KotlinDSL? I tried
Copy code
task {
    named<Test>("integrationTest") {
        useJUnit {
            include("**/*IntegrationTest.class")
        }
    }
}
but get
Task with name 'integrationTest' not found in root project
.
figured it out 😆
named
->
task
c
if you're creating a new task, use
register
2