Replies: 11 comments 3 replies
-
|
I think this is a great idea if you can pull it off. Being able to rely on GraalVM 25+ and FFM (Panama) will be a huge benefit. |
Beta Was this translation helpful? Give feedback.
-
|
I think this is a great idea |
Beta Was this translation helpful? Give feedback.
-
|
It will be significant. I hope you all will use Java 25 as the baseline. I also believe it's better to always adopt the latest available JDK version with each new major release from Micronaut. |
Beta Was this translation helpful? Give feedback.
-
|
Since there are even bugs in the JDK, I consider it a good idea to have JDK 25 as a baseline, but I think it would be interesting to consider a few points:
|
Beta Was this translation helpful? Give feedback.
-
|
JDK 25 base would probably the most compelling feature to use Micronaut 5.0. |
Beta Was this translation helpful? Give feedback.
-
|
I think this is a really great idea. |
Beta Was this translation helpful? Give feedback.
-
|
This is a great idea! |
Beta Was this translation helpful? Give feedback.
-
|
Please do it! |
Beta Was this translation helpful? Give feedback.
-
|
JDK 25 as a baseline would mean that the full feature set of JDK 25 is available for the whole Micronaut 5 lifetime. Micronaut 4: Jul 2023 release was 2 years ago Azul and other distributions have longer supported life time, but e.g. RedHat OpenJDK builds: For Azul: So... regarding EOL, it will be almost 7 years from now, while JDK 21 and earlier usually have a smaller timeframe - JDK 17 already ending in a year. TLDR: JDK 25 has longest time of support. JDK 22 - 25 though had a lot of deprecation removals, virtual threads improvements, ... - imho thats the most important part. Embracing a newer baseline than 17 - which is what most libraries did - would mean that Micronaut is definitely more future proof. Which I'd highly welcome, given that a framework like Micronaut has a wide range of libraries / plugins etc. - which are constantly evolving. E.g. uring / virtual threads / FFI / ... TLDR: Newer baseline - more bulletproof, less deprecation support (as e.g. already removed in JDK), more features / better forward compatibility. Sorry for the longer post, but I wanted to reflect a bit longer on the why. I think its a great decision compared to the rather conservative approach of just sticking to JDK 17 - which imho fuels the "lets stick to sth that is already deprecated in the planning phase" mentality (not meant offensive, but JDK 17 is already 2 LTS releases behind). |
Beta Was this translation helpful? Give feedback.
-
|
Yes please; the sooner the better. |
Beta Was this translation helpful? Give feedback.
-
|
The decision was made to use JDK 25 for Micronaut 5 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We are considering raising the Java baseline to Java 25 for Micronaut 5.
It will also mean raising the Kotlin version to 2.3.
Why? We use major version releases to raise the Java baseline, and as a result, take advantage of new language features such as Scoped values within the framework code.
Moreover, we are hitting some bugs that are only resolved in Java 22.
Cloud vendors have adopted 25 as well. For example, Lambda supports Java 25. Google Cloud recommends using 25.. Java 25 is supported in Amazon Elastic Beanstalk. Google Cloud Run supports 25 as a preview.
Azure functions seem to be still on 21, but we can assume 25 will be there by the time we release Micronaut 5.
I would like to get some feedback from the community about this decission.
Beta Was this translation helpful? Give feedback.
All reactions