Michael Böiers
04/13/2023, 7:33 AMIncorrect language version. Expected one of: '1.0', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9'
(with plugin 1.8.20).
Any ideas?
kotlin {
sourceSets.all {
languageSettings {
languageVersion = "2.0"
}
}
}
semoro
04/13/2023, 7:35 AMMichael Böiers
04/13/2023, 7:35 AMplugins {
id("org.jetbrains.kotlin.jvm") version "1.8.20"
}
It doesn’t work. Which opens the question: When I just say
plugins {
id("org.jetbrains.kotlin.jvm")
}
Which version does it use?semoro
04/13/2023, 7:43 AMMichael Böiers
04/13/2023, 7:47 AMkotlinJvmVersion
defined as 1.8.0
. That tricked me into thinking it was a JVM language version, which of course would also not be exactly right. Maybe it’s because I have to work with Java 1.8 in client projects a lot …semoro
04/13/2023, 7:51 AM