platform icon indicating copy to clipboard operation
platform copied to clipboard

Unable to build project using JDK 21

Open Artur- opened this issue 2 years ago • 5 comments
trafficstars

Describe the bug

[INFO] --- exec:3.0.0:exec (gradle) @ vaadin-gradle-plugin ---
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':compileTestKotlin'.
> Unknown Kotlin JVM target: 21

Expected-behavior

Compiles

Reproduction

mvn install

System Info

mac

Artur- avatar Nov 08 '23 17:11 Artur-

that is strange.. which branch did you run into this issue?

with the latest branch. we have a JDK test build which runs JDK 21, 22 and 17.. all tests are passed.

also by only calling mvn install, platform should not touch anything regarding gradle..

ZheSun88 avatar Nov 09 '23 08:11 ZheSun88

can reproduce with running

./gradlew build on vaadin-gradle-plugin module

ZheSun88 avatar Nov 09 '23 10:11 ZheSun88

let us revisit this issue when the full support from gradle has been updated. https://docs.gradle.org/current/userguide/compatibility.html

ZheSun88 avatar Nov 09 '23 10:11 ZheSun88

@ZheSun88 Gradle 8.5 is out and supports JDK 21

benstpierre avatar Dec 05 '23 16:12 benstpierre

yes we have updated grade 8.5 https://github.com/vaadin/platform/pull/4753 may i know which Vaadin version you are using?

ZheSun88 avatar Dec 07 '23 09:12 ZheSun88