From 48b427ff4b64ec2ebd8b19a9c5551700ef936366 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 24 Jun 2024 15:11:07 +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 Result: Always end up with the correct bytecode --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d24407f..54e3462 100644 --- a/pom.xml +++ b/pom.xml @@ -89,12 +89,13 @@ maven-compiler-plugin - 3.8.0 + 3.13.0 1.8 true 1.8 1.8 + 8 true true true