Skip to content

Commit

Permalink
Make javac target release 21
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed May 26, 2024
1 parent 98f6e87 commit e241d5f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public void run(ProcessingEnvironment environment) throws IOException, Interrupt
var classpath = getEffectiveClasspath(environment);

var javaCompilerOptions = new ArrayList<String>();
javaCompilerOptions.add("--release");
javaCompilerOptions.add("21");
javaCompilerOptions.add("-proc:none"); // No annotation processing on Minecraft sources
javaCompilerOptions.add("-nowarn"); // We have no influence on Minecraft sources, so no warnings
javaCompilerOptions.add("-g"); // Gradle compiles with debug by default, so we replicate this
Expand Down

0 comments on commit e241d5f

Please sign in to comment.