How do you configure the `compileKotlin` task from...
# gradle
b
How do you configure the
compileKotlin
task from the Gradle Kotlin DSL? The best I could come up with is:
Copy code
tasks.withType<KotlinCompile> {
  kotlinOptions {
    jvmTarget = "1.8"
  }
}
This seems much more verbose than the default Groovy version, which is
Copy code
compileKotlin {
    kotlinOptions {
        jvmTarget = "1.8"
    }
}
I could not find a
compileKotlin
extension under the base
KotlinBuildScript
. Am I missing something obvious?