yeah if I remove it everything works - managed to fix @gildor when I generate a new Gradle Kotlin DSL project using intelliJ with Kotlin 1.2.30 plugin for some reason it uses Gradle 4.0 I changed my gradle-wrapper.properties to use Gradle 4.6 and added the java plugin and it compiles now