Because plugins are applied via `subprojects` and ...
# gradle
c
Because plugins are applied via
subprojects
and
allprojects
from root, and gradle does not generate static accessors for subprojects This is what I'm actually doing with the tasks:
Copy code
val compileKotlin: KotlinCompile by getting
val compileGroovy: GroovyCompile by getting
compileGroovy.dependsAndClasspath(compileKotlin)

val compileTestKotlin: KotlinCompile by getting
val compileTestGroovy: GroovyCompile by getting
compileTestGroovy.dependsAndClasspath(compileTestKotlin)

fun GroovyCompile.dependsAndClasspath(compileKotlin: KotlinCompile) {
	dependsOn(compileKotlin)
	classpath += files(compileKotlin.destinationDir)
}