From 5f041e347caa44462588718cd7558811c79adf90 Mon Sep 17 00:00:00 2001 From: Abel Salgado Romero Date: Tue, 9 Jan 2024 14:00:23 +0100 Subject: [PATCH] Set Java Toolchain to enforce module JVM to 8 Otherwise the value of 'org.gradle.jvm.version' is set to the JVM used during build Fixes #702 --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index 395d16324..ac381bd8e 100644 --- a/build.gradle +++ b/build.gradle @@ -150,6 +150,12 @@ subprojects { targetCompatibility = project.targetCompatibility } + java { + toolchain { + languageVersion = JavaLanguageVersion.of(8) + } + } + project.tasks.withType(Test) { testLogging { afterSuite { desc, result ->