From eb3adf28a67d0403ee5b6c6bf60754fd57776dc5 Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Sat, 21 Oct 2023 11:32:55 +0200 Subject: [PATCH] #309 Make compiled Java classes compatible with Java SE 8 --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 846a9dfa..89db734a 100644 --- a/build.gradle +++ b/build.gradle @@ -75,7 +75,11 @@ configure(subprojects) { description "${rootProject.description} - Module ${project.name}" - java + java { + toolchain { + languageVersion = JavaLanguageVersion.of(8) + } + } // The CodeNarc plugin performs quality checks on your project’s // Groovy source files using CodeNarc and generates reports from these checks.