Running Vaadin 24 with Gradle on Java 21
Gradle has not been officially released for Java 21, but it works sufficiently well with Gradle 8.4 or later for compilation and execution. Essentially, this means that Gradle cannot run on Java 21 LTS just yet. I will briefly demonstrate how I managed to upgrade to Java 21 LTS in my environment using IntelliJ. Install Java 21 (I’m using Adoptium Temurin) via sdkman. Pre-requisites: Install Java 21 only on your production system. Use somewhere in your code a command which is unique to the latest Java 21 (in this case.getLast() on a List. ...