Skip to content

Commit

Permalink
add flag for class version
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Nov 24, 2024
1 parent 292c260 commit f56eead
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/xyz/wagyourtail/jvmdg/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ public class Constants {

@Deprecated
public static final String QUIET = "jvmdg.quiet";
public static final String CLASS_VERSION = "jvmdg.classVersion";
public static final String LOG_ANSI_COLORS = "jvmdg.logAnsiColors";
public static final String LOG_LEVEL = "jvmdg.logLevel";
public static final String JAVA_API = "jvmdg.java-api";
public static final String JAVA_API = "jvmdg.javaApi";
public static final String ALLOW_MAVEN_LOOKUP = "jvmdg.maven";

public static final String IGNORE_WARNINGS = "jvmdg.ignoreWarnings";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/xyz/wagyourtail/jvmdg/cli/Flags.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Flags {
/**
* sets the target class version, default is {@link Opcodes#V1_8}
*/
public int classVersion = Opcodes.V1_8;
public int classVersion = Integer.parseInt(System.getProperty(Constants.CLASS_VERSION, "52"));
/**
* sets the api jar to use, if null will attempt to automatically find it
*/
Expand Down

0 comments on commit f56eead

Please sign in to comment.