Skip to content

Commit

Permalink
Use the current running jvm as a default compiler level
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Dec 22, 2024
1 parent 674ca89 commit 0188d5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0188d5b

Please sign in to comment.