Gradle now supports running on and building with Java 16 , or Java Development Kit (JDK) 16, which was released on March 16. To support JDK 16, Gradle has been upgraded to use the Groovy 3 language in Groovy DSL build scripts.
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