From d4ee24f9907802c62615100e9174d4c57eb5a35b Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 24 Jun 2024 17:01:25 +0200 Subject: [PATCH] Use --release 8 during compilation Motivation: We should use --release 8 during compilation to ensure we always end up with the correct java version that is required. Modifications: - Upgrade compiler plugin so the release flag is only used when compiling with java9+ - Specify release flag - Fix source and target version as we already use JDK8 classes in the code. Result: Always end up with the correct bytecode --- pom.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index cfce4de6c..2fe367059 100644 --- a/pom.xml +++ b/pom.xml @@ -68,8 +68,9 @@ false true 1.4.1 - 1.6 - 1.6 + 1.8 + 1.8 + 8 31 5.9.0 true @@ -224,10 +225,11 @@ maven-compiler-plugin - 3.8.1 + 3.13.0 ${maven.compiler.source} ${maven.compiler.target} + ${maven.compiler.release}