5 Comments

> 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

Expand full comment

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

```

Expand full comment

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.

```

Expand full comment