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 --version
to 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.
Latest posts by Rajesh Kumar (see all)
- Gradle versions, their supported Java versions, and unsupported Java versions - December 23, 2024
- An Introduction of GitLab Duo - December 22, 2024
- Best Hospitals for affordable surgery for medical tourism - December 20, 2024