Skip to content

Commit

Permalink
Remove unnecessary add-opens compiler configurations (#630)
Browse files Browse the repository at this point in the history
When building, the following warning is logged for every module:
```
[INFO] --- compiler:3.11.0:compile (default-compile) @ data-locality ---
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 4 source files with javac [debug release 17] to target/classes
[WARNING] --add-opens has no effect at compile time
```

The `add-opens` workaround is [no longer required with newer versions of Lombok](projectlombok/lombok#2681) anyway and so should instead be removed.
  • Loading branch information
JackPGreen committed Apr 16, 2024
1 parent c1209a1 commit 7e3eb3d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pom.xml
Expand Up @@ -107,19 +107,6 @@
<configuration>
<release>${java.version}</release>
<encoding>${project.build.sourceEncoding}</encoding>
<!-- args needed for modules using lombok -->
<compilerArgs>
<arg>--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
<arg>--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
<arg>--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
<arg>--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
<arg>--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
<arg>--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
<arg>--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
<arg>--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
<arg>--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
<arg>--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 7e3eb3d

Please sign in to comment.