From 0188d5bb7f8ddade8b5d7d422127748522d717a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sun, 22 Dec 2024 06:35:15 +0100 Subject: [PATCH] Use the current running jvm as a default compiler level --- .../copied/org/apache/maven/plugin/AbstractCompilerMojo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java b/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java index 269ee93f6e..8a8cbb7606 100644 --- a/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java +++ b/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java @@ -59,9 +59,9 @@ public abstract class AbstractCompilerMojo extends AbstractMojo { protected static final String JDT_COMPILER_ID = "jdt"; - public static final String DEFAULT_SOURCE_VERSION = "11"; + public static final String DEFAULT_SOURCE_VERSION = Integer.toString(Runtime.version().feature()); - public static final String DEFAULT_TARGET_VERSION = "11"; + public static final String DEFAULT_TARGET_VERSION = DEFAULT_SOURCE_VERSION; // ---------------------------------------------------------------------- // Configurables