Skip to content

Commit 773fc96

Browse files
committed
Update the logic to validate the java version
Loosen the check to allow Java version >= 17
1 parent c3ae6aa commit 773fc96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/android/java/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ task copyAndRenameBinary(type: Copy) {
269269
* Used to validate the version of the Java SDK used for the Godot gradle builds.
270270
*/
271271
task validateJavaVersion {
272-
if (JavaVersion.current() != versions.javaVersion) {
273-
throw new GradleException("Invalid Java version ${JavaVersion.current()}. Version ${versions.javaVersion} is the required Java version for Godot gradle builds.")
272+
if (!JavaVersion.current().isCompatibleWith(versions.javaVersion)) {
273+
throw new GradleException("Invalid Java version ${JavaVersion.current()}. Version ${versions.javaVersion} is the minimum supported Java version for Godot gradle builds.")
274274
}
275275
}
276276

0 commit comments

Comments
 (0)