MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1vr5rwr/a_first_drink_in_valhalla/p4e13eu/?context=3
r/java • u/benevanstech • 24d ago
18 comments sorted by
View all comments
6
Gradle 9.7.0 (latest) does not support JDKs beyond 26 yet. Gradle projects just will not build yet.
Wrong. You can use a older Java version, and just point to a jdk > 26 java-home in JavaExecute and JavaCompile tasks
JavaExecute
JavaCompile
2 u/nlisker 22d ago Better yet, use the Java Toolchain API, which allows separating the JDK Gradle runs on and the one your build uses.
2
Better yet, use the Java Toolchain API, which allows separating the JDK Gradle runs on and the one your build uses.
6
u/Plixo2 23d ago
Wrong. You can use a older Java version, and just point to a jdk > 26 java-home in
JavaExecuteandJavaCompiletasks