Gradle use specific JDK

If you working with IntelliJ IDEA you may notice, that changing Project’s JDK version is not affected to Gradle build/run.

To force Gradle to use a specific JDK version / vendor you merely need to change Gradle JVM version in IntelliJ IDEA settings: 

Settings → Build, Execution, Deployment → Build Tools → Gradle → Gradle JVM. 

Telegram channel

If you still have any questions, feel free to ask me in the comments under this article or write me at

If I saved your day, you can support me 🤝

Leave a Reply

Your email address will not be published. Required fields are marked *