Skip to content

Commit

Permalink
Upgrade googleJavaFormat version in pom to 1.17.0 so it works with
Browse files Browse the repository at this point in the history
Java 21+ and also add some jvm.config exports to suppress some
warnings when Spotless uses some internal jvm classes to help with its
formatting work.
  • Loading branch information
Dave Wichers committed Jan 6, 2025
1 parent ea08b4b commit d12d7ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED

--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@

<!-- apply a specific flavor of google-java-format -->
<googleJavaFormat>
<version>1.10.0</version>
<version>1.17.0</version>
<style>AOSP</style>
</googleJavaFormat>
</java>
Expand Down

0 comments on commit d12d7ce

Please sign in to comment.