- Download JDK 20 EA (Early Access) build from https://jdk.java.net/20/ and unzip it to a local folder.
- On
build.gradle.kts
, add
// to use JDK 20 for the build and execution
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(20))
}
}