I have the simplest gradle project configured using intellij for kotlin 1.2.10. Here is my build.gradle file:
buildscript { ext.kotlin_version = \'1.2.10
This worked for me in Gradle with Kotlin DSL:
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile val compileKotlin: KotlinCompile by tasks compileKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()