Thanks @simon.vergauwen! Slowly it's starting to make sense to me. As far as I'm understanding here, you need a Gradle plugin, to call the Kotlin-compiler plugin. You also need to pass options through the Gradle-plugin into the CommandLineProcessor. Does that sound right?