Gradle uses whichever JDK it finds in your path (to check, use java -version). Alternatively, you can set the JAVA_HOME environment variable to point to the install directory of the desired JDK.
Read moreWhich Gradle version is compatible with Java 17?
Java Java versionFirst Gradle version to support it146.3156.7167.0177.3Compatibility Matrix – Gradle User Manual docs.gradle.org › current › userguide › compatibility
Read moreDoes Gradle work with Java?
Gradle runs on the JVM and you must have a Java Development Kit (JDK) installed to use it . This is a bonus for users familiar with the Java platform as you can use the standard Java APIs in your build logic, such as custom task types and plugins. It also makes it easy to run Gradle on different platforms.
Read moreDoes Gradle support 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 moreIs Gradle compatible with JDK 15?
Gradle now supports running on and building with Java 15 .
Read moreDoes Gradle support Java 14?
Gradle now supports running and building with Java 14 .
Read moreWhat version of Java 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 more