Gradle by default pulls java version it does not support
community/gradle package depends on "java-jdk". For packages in testing, openjdk19 gets selected as "java-jdk" provider since ae547c84. This is wrong, as gradle 7.5.1 does not support java 19.
Solutions:
- It is possible to depend on explicit java versions in packages having gradle as dependency. That is not optimal, as after gradle starts supporting new java versions these packages will need to be updated manually. Additionally, it is confusing for users just installing gradle for their own needs (as by default wrong version could be pulled).
- Gradle could explicitly depend on latest supported java version. That might lead to overhead, as packages depending on gradle might have additional java version constraints and this solution might result in multiple java versions installed (where one would be sufficient).
Are there other solutions? Which one should be preferred?