I just upgraded to Gradle 5.0. In my `build.gradle...
# announcements
k
I just upgraded to Gradle 5.0. In my
build.gradle.kts
file, I want to specify that Kotlin compile to 1.8. I’m using the following syntax, which works, but I was wondering whether this is idiomatic or if there’s a simpler way:
Copy code
tasks.withType<KotlinCompile> {
    kotlinOptions {
        jvmTarget = "1.8"
    }
}