What is "test"(Test::class)
for a language construct in the following example from the Gradle Kotlin DSL?
tasks {
"test"(Test::class) {
configure<JacocoTaskExtension> {
isAppend = true
}
}
}
What is "test"(Test::class)
for a language construct in the following example from the Gradle Kotlin DSL?
tasks {
"test"(Test::class) {
configure<JacocoTaskExtension> {
isAppend = true
}
}
}
The invocation operator has been added to String
using an extension function:
operator fun String.invoke(clazz: Class<*>) {
}
Note: I am using java.lang.Class
here, but Gradle might use KClass
.