the java toolchain doc have a wrong kotlin snippet...
# docs-revamped
e
the java toolchain doc have a wrong kotlin snippet, this should be
Copy code
kotlin {
    jvmToolchain {
        (this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(<MAJOR_JDK_VERSION>)) // "8"
    }
}
v
Hi! We removed this type cast in Kotlin 1.7.0 and announced it – see the last section here. Now the documentation has a topical state for Kotlin 1.7.20.
e
oh, that's nice, thanks
sorry for the noise then