Skip to content

Commit

Permalink
build(core) move module-info generation to Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Spasi committed Nov 20, 2024
1 parent fc8f03c commit 12ea1df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public final class ModuleInfoGen implements AutoCloseable {
MODULE_NAME = Pattern.compile("^\\s*(?:open\\s+)?module\\s+(" + JAVA_PACKAGE + ")\\s*\\{", Pattern.MULTILINE),
REQUIRES = Pattern.compile("^\\s*requires(?:\\s+(static))?(?:\\s+(transitive))?\\s+(.+)\\s*;", Pattern.MULTILINE);

private static final Path METAINF = Paths.get("META-INF", "versions", "9");
private static final Path METAINF = Paths.get("META-INF", "versions", "11");

private final JavaCompiler compiler;

Expand Down Expand Up @@ -346,7 +346,7 @@ private void compile(

ArrayList<String> options = new ArrayList<>(6);
options.add("--release");
options.add("9");
options.add("11");
if (modulePath != null && !modulePath.isEmpty()) {
options.add("--module-path");
options.add(modulePath);
Expand Down

0 comments on commit 12ea1df

Please sign in to comment.