Skip to content

Commit f53600e

Browse files
committed
chore: Add google-java-format as Maven plugin (re. #168)
We intentionally fix the google-java-format version in the Maven plugin, as this will make upgrading it in the future easier, as we won't be blocked by the version which the fmt-maven-plugin uses. See also spotify/fmt-maven-plugin#202.
1 parent ec31bac commit f53600e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,25 @@
191191
</plugins>
192192
</pluginManagement>
193193
<plugins>
194+
<plugin>
195+
<groupId>com.spotify.fmt</groupId>
196+
<artifactId>fmt-maven-plugin</artifactId>
197+
<version>2.27</version>
198+
<dependencies>
199+
<dependency>
200+
<groupId>com.google.googlejavaformat</groupId>
201+
<artifactId>google-java-format</artifactId>
202+
<version>1.27.0</version>
203+
</dependency>
204+
</dependencies>
205+
<executions>
206+
<execution>
207+
<goals>
208+
<goal>format</goal>
209+
</goals>
210+
</execution>
211+
</executions>
212+
</plugin>
194213
<plugin>
195214
<groupId>org.jacoco</groupId>
196215
<artifactId>jacoco-maven-plugin</artifactId>

0 commit comments

Comments
 (0)