Edit: Solved here
I upgraded the Kotlin plugin for IntelliJ to version 1.1.0. I also changed the dependencies and gradle plugin version.
This is my build.gradle. Context: I am creating a plugin for a Minecraft server software/API named ‘Sponge’, it’s like Bukkit if you know that.
I can workaround this problem by deleting the default ‘additional command line parameters’ of the module(
Project structure > Modules > 'select main module' > Additional command line parameters) which includes something of kapt. Here are the dafault parameters. But the parameters come back after a Gradle refresh, so I have to re-delete them again.
The problem doesn’t occur in plugin version 1.0.6.