Gradle now supports running on and building with Java 17 . In previous Gradle versions, running Gradle itself on Java 17 resulted in an error. JVM projects could have been built with Java 17 using toolchains. As of Gradle 7.3, both running Gradle itself and building JVM projects with Java 17 is fully supported.
Read moreWhich version of Java is Gradle using?
Gradle can only run on Java version 8 or higher . Gradle still supports compiling, testing, generating Javadoc and executing applications for Java 6 and Java 7.
Read more