Which Java versions should we support #4130
Replies: 8 comments 14 replies
-
Personally, I am using Java 11 because Android supports it, but that change is recent, so probably a lot of Android projects will be stuck on JVM 8 for months. |
Beta Was this translation helpful? Give feedback.
-
Another factor is the AGP's roadmap https://developer.android.com/studio/releases/gradle-plugin-roadmap
It feels to me that there could be backward-incompatible changes in that version - This seems to match the Java 18 timeline as well. |
Beta Was this translation helpful? Give feedback.
-
Also relevant to this discussion: #4133 |
Beta Was this translation helpful? Give feedback.
-
Other issue related with us supporting java8: #3396 (comment) And maybe #4120 is relevant for this discussion too. |
Beta Was this translation helpful? Give feedback.
-
I had no issues upgrading AGP, but I am not sure if it can be a problem in some cases, if not, I don't see any problem to drop 8. Another thing is... if a project can't upgrade to AGP 7 probably not upgrading detekt would not be a big problem for them because they have to have bigger problems. |
Beta Was this translation helpful? Give feedback.
-
For me I think leave Java 8 behind is ok if we make it clear on either README or documentation (or both?). |
Beta Was this translation helpful? Give feedback.
-
I think Detekt JVM support should align with Kotlin. Android is not only Kotlin target and Detekt is most sophisticated code checker for Kotlin. |
Beta Was this translation helpful? Give feedback.
-
Could we revisit this topic? Right now on CI we are againt 8, 11 and 17. But JDK 19 is out there already and 20 is going to be released this month. Also, AGP 8.0 is on beta and it will be the second major AGP release without support for JDK8 (#4130 (reply in thread)) So probably it is time to reopen this topic. |
Beta Was this translation helpful? Give feedback.
-
Java 17 is here. And It is a LTS. From now we said that we support the LTS and the last java version. But if we continue doing that we will need to support 4 different versions in 6 months. That seems a bit too much work to me.
Should we think about dropping the support for Java 8? The Android Gradle Plugin already dropped it so a lot of our users are forced to use Java 11 already and I don't know if there were other people out there using Java 8 apart from Android developers...
So my proposal would be to drop the Java 8 support as soon as Java 18 is released (March 2022).
I would like to hear reasons against this. Are there users out there that really care about Java 8 support?
Beta Was this translation helpful? Give feedback.
All reactions