Skip to content

Commit

Permalink
Add Gradle 8.5 to the compatibility check (#3044)
Browse files Browse the repository at this point in the history
Signed-off-by: Sheng Chen <[email protected]>
  • Loading branch information
jdneo authored Feb 6, 2024
1 parent 9f5440e commit a55e324
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.3")) >= 0) {
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;
} else if (baseVersion.compareTo(GradleVersion.version("7.6")) >= 0) {
return JavaCore.VERSION_19;
Expand Down

0 comments on commit a55e324

Please sign in to comment.