Giuseppe Barbieri
04/02/2024, 8:12 AM./gradlew LineDemo --info
I specifically selected the jvm 21 to run with, in my build.gradle.kts
with
kotlin {
jvmToolchain(21)
but for some reasons Gradle keeps selecting jdk11, which is also in my JAVA_HOME
reading the docs Toolchain installations precedence, they state
> 1. the installation currently running Gradle is preferred over any other
What's that?
And why isn't 21 getting chosen?Giuseppe Barbieri
04/02/2024, 8:14 AMGiuseppe Barbieri
04/02/2024, 8:15 AMJava home is different.Does
JAVA_HOME
matter in this? I cannot believe I shall change it to match the jdk I actually wantGiuseppe Barbieri
04/02/2024, 8:33 AMJAVA_HOME
to 21 does work indeedVampire
04/02/2024, 8:53 AMVampire
04/02/2024, 8:54 AMVampire
04/02/2024, 8:55 AM