From b1827ee6939b2810e3b1c9dd32422ddc1673da8d Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 25 Jun 2024 08:54:57 +0200 Subject: [PATCH] Use --release 8 during compilation (#872) 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}