Gradle should require Java 21 or earlier
Description:
According to the gradle compatibility matrix it is not compatible with Java 22 so even if it can run with Java 22 it should depend on Java 21 or earlier:
A Java version between 8 and 21 is required to execute Gradle. Java 22 and later versions are not yet supported.