From 773fc96ab287730bdcc4779d21e79fc95142aa65 Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Thu, 15 May 2025 16:28:07 -0700 Subject: [PATCH] Update the logic to validate the java version Loosen the check to allow Java version >= 17 --- platform/android/java/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/android/java/app/build.gradle b/platform/android/java/app/build.gradle index eddf2e27c4..36accd4df8 100644 --- a/platform/android/java/app/build.gradle +++ b/platform/android/java/app/build.gradle @@ -269,8 +269,8 @@ task copyAndRenameBinary(type: Copy) { * Used to validate the version of the Java SDK used for the Godot gradle builds. */ task validateJavaVersion { - if (JavaVersion.current() != versions.javaVersion) { - throw new GradleException("Invalid Java version ${JavaVersion.current()}. Version ${versions.javaVersion} is the required Java version for Godot gradle builds.") + if (!JavaVersion.current().isCompatibleWith(versions.javaVersion)) { + throw new GradleException("Invalid Java version ${JavaVersion.current()}. Version ${versions.javaVersion} is the minimum supported Java version for Godot gradle builds.") } }