To be on the safe side rewrote it like this. This ...
# gradle
c
To be on the safe side rewrote it like this. This for sure should be configuration-avoidance compatible, right?
Copy code
named<GroovyCompile>("compileGroovy") {
	dependsAndClasspath(named<KotlinCompile>("compileKotlin"))
}

named<GroovyCompile>("compileTestGroovy") {
	dependsAndClasspath(named<KotlinCompile>("compileTestKotlin"))
}

fun GroovyCompile.dependsAndClasspath(compileKotlin: TaskProvider<KotlinCompile>) {
	dependsOn(compileKotlin)
	classpath += files(compileKotlin.get().destinationDir)
}
👍 2