I've been waiting for this for a long time! Because today we can start again with a set of JEPs, which we will probably see around JDK 22. In addition, Pulumi, and interesting releases.
> Interestingly, Kotlin 1.9.10 does not yet support JDK 21, implying that Gradle requires JDK 20 to function
This is strange, cause I've recently updated my project to JDK 21 and nothing failed 🤔 Now I need to check tomorrow if I really did update or what's going on
Interesting - it is excerpt directly from the Gradle docs :D
```
Support for building projects with Java 21
Gradle now supports using Java 21 for compiling, testing, and starting other Java programs. This can be accomplished using toolchains.
Currently, you cannot run Gradle on Java 21 because Kotlin lacks support for JDK 21. However, support for running Gradle with Java 21 is expected in future versions.
> Interestingly, Kotlin 1.9.10 does not yet support JDK 21, implying that Gradle requires JDK 20 to function
This is strange, cause I've recently updated my project to JDK 21 and nothing failed 🤔 Now I need to check tomorrow if I really did update or what's going on
WHAT AM I DOING WRONG?
```
$ ./gradlew -version
------------------------------------------------------------
Gradle 8.3
------------------------------------------------------------
Build time: 2023-08-17 07:06:47 UTC
Revision: 8afbf24b469158b714b36e84c6f4d4976c86fcd5
Kotlin: 1.9.0
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 21 (Eclipse Adoptium 21+35-LTS)
OS: Mac OS X 13.6 x86_64
$ ./gradlew test
...
BUILD SUCCESSFUL in 8m 46s
41 actionable tasks: 10 executed, 31 up-to-date
```
Interesting - it is excerpt directly from the Gradle docs :D
```
Support for building projects with Java 21
Gradle now supports using Java 21 for compiling, testing, and starting other Java programs. This can be accomplished using toolchains.
Currently, you cannot run Gradle on Java 21 because Kotlin lacks support for JDK 21. However, support for running Gradle with Java 21 is expected in future versions.
```
I will double check this, Yarik! Thanks!
Asked them, maybe they will shed some light on it: https://www.linkedin.com/posts/yarik-yermilov-50668258_hey-gradle-inc-i-have-a-curiosity-question-activity-7122539361618817026-Ehu6?utm_source=share&utm_medium=member_desktop