Upgrade Gradle to use Java 21 #java #javaframework #graalvm

preview_player
Показать описание
Java 21 and GraalVM supporting Java 21 are finally here! Here's how you upgrade your Spring Boot and Gradle build to use Java 21. #gradle #graalvm #springboot #java #java21
Рекомендации по теме
Комментарии
Автор

Serious question: do people use gradle in production?

MrIStillDontCare
Автор

When i use 21 version, my ide shows errors in every freaking thing. It doesn't even recognize string as a java code. Running the project warns saying it contains errors. Proceeding with errors causes the project to run. Changing the version to java 17 makes it run perfectly fine.

anonymous
Автор

You are not explaining properly that grqdle itself runs on java 8-20 but it can COMPILE up to java 21.
Also, you don't have to set aourceCompatability if you are using the toolchain selector. Which you should be using anyway. sourceCompatability is discouraged

lennart
Автор

you are telling your build process to use language version 21 of java but you dont show it where it can find java 21, but use 20 instead. how should this suppose to work. the guys that implemented java 20 did not implement java 21 features into java 20. so you can not use any feature of java 21. btw gradle 8.4-rc2 has support for java 21. so maybe just delete that video and stop spreading misinformation.

asdfasdf
join shbcf.ru