Skip to content

Commit

Permalink
Add Gradle 8.8 to compatibility check
Browse files Browse the repository at this point in the history
Fixes imports with Java 22 and Gradle 8.8, analogous to eclipse-jdtls#3044.

Signed-off-by: Mateusz Kazimierczuk <[email protected]>
  • Loading branch information
mataha authored and rgrunber committed Aug 7, 2024
1 parent b7998dc commit 353d49f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ public static String getHighestSupportedJava(GradleVersion gradleVersion) {
GradleVersion baseVersion = gradleVersion.getBaseVersion();
try {
// https://docs.gradle.org/current/userguide/compatibility.html
if (baseVersion.compareTo(GradleVersion.version("8.5")) >= 0) {
if (baseVersion.compareTo(GradleVersion.version("8.8")) >= 0) {
return JavaCore.VERSION_22;
} else if (baseVersion.compareTo(GradleVersion.version("8.5")) >= 0) {
return JavaCore.VERSION_21;
} else if (baseVersion.compareTo(GradleVersion.version("8.3")) >= 0) {
return JavaCore.VERSION_20;
Expand Down

0 comments on commit 353d49f

Please sign in to comment.