diff --git a/patches/server/Setup-Gradle-project.patch b/patches/server/Setup-Gradle-project.patch index ca9f1923ca..ac1ae8a6da 100644 --- a/patches/server/Setup-Gradle-project.patch +++ b/patches/server/Setup-Gradle-project.patch @@ -135,6 +135,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + doFirst { + workingDir.mkdirs() + } ++ javaLauncher.set(project.javaToolchains.launcherFor { ++ languageVersion.set(JavaLanguageVersion.of(project.tasks.compileJava.get().options.release.get())) ++ }) + block(this) +} +