-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop Java 8 (JRE 1.8) support #90
Comments
@sbernard31 how big problem is that going to be if we drop java 8 support and use java 17 as minimum? |
About Leshan project itself : So nothing news on our side. We decide that the minimal java version required will be java8 for Leshan 2.0.0 (in development version) : eclipse-leshan/leshan#924. Reasons why we take this decision are still valid, so I don't think we will change this. If there is good reason to jump to a more recent minimal java version requirement (I don't know maybe if when we release the stable version java8 is no more maintained?)), we could eventually consider Java 11 but not java 17. I don't see any good reason to use it from a Leshan consumer point of view. But again this is not planned at all to move to java 11. Currently we are building Leshan using Java 11 and we produce java8 compatible binary, then we execute automatic test with all LTS version (8, 11, 17, 21) Note that currently Californium v3 targets java 7 (the one used in Leshan 2.0.0) and v4 should target java8. (development doesn't start for now but we will sure integrate this version in Leshan 2.0.0 when available) About java-coap integration in Leshan : From user point of view, this is not so good as we need to explain that some part of Leshan will be compatible with java8 and other need java 17. (and maybe will not be compatible with Android?) From Leshan developer, this could make build and test more complicated as we will need to adapt the code to build and test transport layer based on java-coap differently. (Hoping this will not force us to move to java 17 to build ...) So from Leshan point of view this will not be a good news 😞 About java-coap itself : What would be the reason to that move ? At first sight, it seems to me that reason which make us decide to use java8 as minimal should also lead to make java8 as minimal required version for java-coap but maybe I don't have the full big picture ? |
I updated description with some reasons to do such a change. None of it seems like a blocker so we could go on with java 8 support. |
👍
I see java 11 supported until : So I'm not sure I get your question ?
We don't really test it but I know some user succeed to make it works : https://github.com/eclipse-leshan/leshan/wiki/F.A.Q.#can-i-use-leshan-with-android- I never develop for Android 😬 |
Is it API which could be easily removed in your case ?
I never see this warning, probably because I never build with java 21.
For logback, I guess this is not an issue because logback-classic is not a compile dependencies, so users can use java-coap + recent logback + recent JVM.
In maven you can build for java8 running java11 or upper without toolchain : see eclipse-leshan/leshan#1412
Yep could be frustrating sometime. |
Those reasons are minor, and like you pointed out there are workarounds. I still wanted to list them, and add later if something new comes up. |
Some reasons for moving project from Java 8 to Java 17 as minimum.
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
logback-classic
andmockito-core
, may not support Java 8 and it prevents using the latest versions.References:
The text was updated successfully, but these errors were encountered: