Skip to content

Commit e406056

Browse files
committed
MVN: Spotless google-java-format
1 parent 922cb92 commit e406056

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

pom.xml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<vavr.version>0.10.3</vavr.version>
3333
<re2j.version>1.6</re2j.version>
3434
<gson.version>2.8.9</gson.version>
35+
<spotless.version>2.44.2</spotless.version>
3536

3637
<!-- test dependencies -->
3738
<junit.version>5.8.2</junit.version>
@@ -225,8 +226,26 @@
225226
</statelessTestsetInfoReporter>
226227
</configuration>
227228
</plugin>
228-
229-
229+
<plugin>
230+
<groupId>com.diffplug.spotless</groupId>
231+
<artifactId>spotless-maven-plugin</artifactId>
232+
<version>${spotless.version}</version>
233+
<configuration>
234+
<java>
235+
<googleJavaFormat/>
236+
<removeUnusedImports>
237+
<engine>google-java-format</engine>
238+
</removeUnusedImports>
239+
</java>
240+
</configuration>
241+
<executions>
242+
<execution>
243+
<goals>
244+
<goal>check</goal>
245+
</goals>
246+
</execution>
247+
</executions>
248+
</plugin>
230249
</plugins>
231250
</build>
232251

0 commit comments

Comments
 (0)