Reputation: 4327
When trying to configure the project I'm getting the error:
Unsupported Java. Your build is currently configured to use Java 17.0.1 and Gradle 7.0.
Unfortunately there are no information in official documentation for now.
Upvotes: 23
Views: 76844
Reputation: 12712
Here is the Gradle and Java version compatibility.
For gradle 7.0 , you have to downgrade to Java 16.
Or you keep Java 17 , your gradle has to be update to 7.3 or above.
Java version | First Gradle version to support it |
---|---|
8 | 2.0 |
9 | 4.3 |
10 | 4.7 |
11 | 5.0 |
12 | 5.4 |
13 | 6.0 |
14 | 6.3 |
15 | 6.7 |
16 | 7.0 |
17 | 7.3 |
18 | 7.5 |
19 | 7.6 |
20 | 8.3 (previously 8.1 ⚠) |
21 | 8.5 |
22 | 8.8 |
23 | 8.10 |
https://docs.gradle.org/current/userguide/compatibility.html
Upvotes: 21
Reputation: 6770
Gradle 7.3 is the first version fully supporting Java 17. From the Release Notes:
Support for Java 17
Gradle now supports running on and building with Java 17.
In previous Gradle versions, running Gradle itself on Java 17 resulted in an error. JVM projects could have been built with Java 17 using toolchains.
As of Gradle 7.3, both running Gradle itself and building JVM projects with Java 17 is fully supported.
Upvotes: 25
Reputation: 83
From version 7.3 Gradle is officially supporting Java 17. For more details, compatibility matrix can be seen here and details of releases can be seen from here.
Upvotes: 5