Here’s a table that outlines Gradle versions, their supported Java versions, and unsupported Java versions:
| Gradle Version | Supported Java Versions | Not Supported Java Versions |
|---|---|---|
| Gradle 6.x | 8, 9, 10, 11 | 12 and above |
| Gradle 7.0 | 8, 11, 15 | 7, 9, 10, 12 and above 17 |
| Gradle 7.x | 11 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 Version | Supported Java Versions | Not Supported Java Versions |
|---|---|---|
| Gradle 6.x | 8, 9, 10, 11 | 12 and above |
| Gradle 7.0 | 8, 11, 15 | 7, 9, 10, 12–14, 16 and above |
| Gradle 7.1–7.3 | 8, 11, 15 | 7, 9, 10, 12–14, 16 and above |
| Gradle 7.4–7.6 | 8, 11, 15, 16 | 7, 9, 10, 12–14, 17 and above |
| Gradle 7.6.1 | 8, 11, 15, 16, 17 | 7, 9, 10, 12–14, 18 and above |
| Gradle 8.0 | 17–20 | 7–16, 21 and above |
| Gradle 8.1–8.3 | 17–20 | 7–16, 21 and above |
| Gradle 8.4+ | 17–21 (Expected with updates) | 7–16, 22 and above (Future Unsupported) |
Notes:
- 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.
- Using Unsupported Java Versions:
- Gradle builds may fail or produce unpredictable results with unsupported Java versions.
- Check Gradle Version: Use
./gradlew --versionto confirm the Gradle version and the Java environment it’s using. - 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.
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals