With the latest 7.0 release of Gradle, both running Gradle and building projects on JDK 16 is fully supported . Gradle itself has been upgraded to use Groovy 3 in Groovy based DSL build scripts to fully support JDK 16.20 Nis 2021
Read moreDoes Gradle work with JDK 17?
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 moreHow do I run a Java project in Gradle?
Get the Code
Read moreWhat Java version does Gradle use?
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. Java 5 and below are not supported.
Read moreHow do I set Java version in build Gradle?
Right click on the deploy or any other task and select “Open Gradle Run Configuration…” Then navigate to “Java Home ” and paste your desired java path.
Read moreDoes Gradle support Java 11?
> Android Gradle plugin requires Java 11 to run .
Read moreDoes Gradle support Java modules?
Building, testing and running Java Modules With this release, Gradle supports the Java Module System with everything you need to compile and execute tests for Java modules. You can also build Javadoc and run applications.
Read more