Skip to content

Commit d12d7ce

Browse files
author
Dave Wichers
committed
Upgrade googleJavaFormat version in pom to 1.17.0 so it works with
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.
1 parent ea08b4b commit d12d7ce

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.mvn/jvm.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
22
--add-opens java.base/java.lang=ALL-UNNAMED
3+
4+
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
5+
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
6+
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
7+
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
8+
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292

293293
<!-- apply a specific flavor of google-java-format -->
294294
<googleJavaFormat>
295-
<version>1.10.0</version>
295+
<version>1.17.0</version>
296296
<style>AOSP</style>
297297
</googleJavaFormat>
298298
</java>

0 commit comments

Comments
 (0)