`w: Language version 1.8 is deprecated and its sup...
# language-evolution
k
w: Language version 1.8 is deprecated and its support will be removed in a future version of Kotlin
Looks like this is already on the table. What's the plan for moving off of 1.8 as the minimum supported version?
y
Not sure, but I've heard that the K1 compiler is staying for a year, hence 1.9 is staying for a year at least
j
Yeah 1.8 is already gone in Kotlin 2.3. Bumped all our Gradle plugins to target 2.2 instead which is what's in Gradle 9.
k
What's the new minimum? Java 1.9 or 11?
j
Oh you're talking about JVM bytecode version?
I thought this was Kotlin api/language version
same 1
k
I'm confused now. What is this message saying?
y
It's saying Kotlin version 1.8 is deprecated. The compiler has the capability to compile code with a previous Kotlin version.
k
Is it warning me that I have version 1.8 output configured in my project, or is it just a generic warning?
j
It would only show this if you configured an api/language version of 1.8
k
Where is that configured? Not seeing anything with "8" in my
build.gradle.kts
j
languageVersion = KotlinVersion.KOTLIN_1_8
somewhere
k
I have this block
Not seeing
languageVersion
anywhere in my project
j
Not sure then. You see the warning when doing a normal build? The IDE? Somewhere else?
k
With the
--debug
flag, it looks like it's coming from a module that is a Gradle plugin
So maybe one of these dependencies is bringing in its own language version?
The warning is printed in terminal on a full clean build
I don't even remember why I have
kotlin-dsl
and
groovy
in there
Just removed them, and the warning is gone 🤷‍♂️
j
The
kotlin-dsl
is probably setting it to 1.8 since that was the language version supported by Gradle 8
k
OK, so all false alarm here
I thought this was about dropping support for Java 8 at the bytecode level
c
kotlin-dsl
uses 1.8 as the Kotlin language version (for Gradle < 9.x), by default, though you could set it to 1.9/2.0 (following the compatibility matrix)