Dylan
12/03/2020, 2:14 PMvariant.registerJavaGeneratingTask(myTask, outputFile)
until now, which didn't work. So I asked the question somewhere else and was told to use this:
project.tasks.named("compile${variant.name.capitalize()}Kotlin").configure {
this.dependsOn(myTask)
(this as KotlinCompile).source(outputDir)
}
This worked, but I was wondering if there wasn't an official way (which actually works) for Android?