Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Gradle versions, their supported Java versions, and unsupported Java versions

Here’s a table that outlines Gradle versions, their supported Java versions, and unsupported Java versions:


Gradle VersionSupported Java VersionsNot Supported Java Versions
Gradle 6.x8, 9, 10, 1112 and above
Gradle 7.08, 11, 157, 9, 10, 12 and above 17
Gradle 7.x11 and 15<<= Above 17 (not supported either)

Here’s a complete table of Gradle versions and their corresponding supported and not supported Java versions:


Gradle VersionSupported Java VersionsNot Supported Java Versions
Gradle 6.x8, 9, 10, 1112 and above
Gradle 7.08, 11, 157, 9, 10, 12–14, 16 and above
Gradle 7.1–7.38, 11, 157, 9, 10, 12–14, 16 and above
Gradle 7.4–7.68, 11, 15, 167, 9, 10, 12–14, 17 and above
Gradle 7.6.18, 11, 15, 16, 177, 9, 10, 12–14, 18 and above
Gradle 8.017–207–16, 21 and above
Gradle 8.1–8.317–207–16, 21 and above
Gradle 8.4+17–21 (Expected with updates)7–16, 22 and above (Future Unsupported)

Notes:

  1. LTS Java Versions:
    • Gradle prefers Java LTS versions (e.g., Java 8, 11, 17, 21) for long-term support and stability.
    • Non-LTS versions may be supported for a short period but not guaranteed.
  2. Using Unsupported Java Versions:
    • Gradle builds may fail or produce unpredictable results with unsupported Java versions.
  3. Check Gradle Version: Use ./gradlew --version to confirm the Gradle version and the Java environment it’s using.
  4. Check Compatibility: Gradle officially maintains a compatibility matrix for Java and Gradle versions.

By aligning your Gradle version with the appropriate Java version, you can ensure a smooth build and development experience.

Rajesh Kumar
Follow me
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x