Skip to content

Commit

Permalink
Update fmt-maven-plugin, moved from com.coveo to com.spotify.fmt
Browse files Browse the repository at this point in the history
Since the JDK is more restrictive since version 16+,
the following parameters are configured in `.mvn/jvm.config`
to run the Google Java Formatter, as instructed
in https://github.com/spotify/fmt-maven-plugin#using-with-java-16-and-maven

```
--add-exports jdk.compiler/com.sun.tools.javac.api=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.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
```
  • Loading branch information
groldan committed Feb 24, 2022
1 parent f081213 commit d14d204
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--add-exports jdk.compiler/com.sun.tools.javac.api=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.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,9 @@
<version>1.2.2</version>
</plugin>
<plugin>
<groupId>com.coveo</groupId>
<groupId>com.spotify.fmt</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.14</version>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
Expand Down Expand Up @@ -866,7 +866,7 @@
</executions>
</plugin>
<plugin>
<groupId>com.coveo</groupId>
<groupId>com.spotify.fmt</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<executions>
<execution>
Expand Down

0 comments on commit d14d204

Please sign in to comment.