Puzzling behavior from the Kotlin Gradle plug-in

Because those java files can contain references to kotlin classes, and javac can’t parse kotlin sources. Therefore kotlin sources have to be compiled before java ones.