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 moreHow do I find my Gradle version in Intellij?
Access the Gradle settings Use the Gradle settings to configure the build and run actions for each linked Gradle project, a Gradle version, importing of the project’s changes, and so on. In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Build, Execution, Deployment| Gradle .
Read moreWhat is latest version of Gradle?
Android Gradle plugin release notes
Read more