Skip to content

Commit a57aafe

Browse files
author
Vincent Potucek
committed
spotless-maven-plugin
1 parent efe702c commit a57aafe

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

pom.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,57 @@
183183
<artifactId>maven-bundle-plugin</artifactId>
184184
<version>5.1.4</version>
185185
</plugin>
186+
<plugin>
187+
<groupId>com.diffplug.spotless</groupId>
188+
<artifactId>spotless-maven-plugin</artifactId>
189+
<version>2.44.5</version>
190+
<configuration>
191+
<formats>
192+
<format>
193+
<excludes>
194+
<exclude>**/testdata/**</exclude>
195+
<exclude>**gradlew**</exclude>
196+
<exclude>**mvnw**</exclude>
197+
</excludes>
198+
<includes>
199+
<include>.gitignore</include>
200+
</includes>
201+
<trimTrailingWhitespace/>
202+
</format>
203+
</formats>
204+
<java>
205+
<excludes>
206+
<exclude>**/src/main/java/net/sourceforge/pmd/lang/java/types/package-info.java</exclude>
207+
<exclude>**/testdata/**</exclude>
208+
<exclude>**/unnecessaryimport/package1/U.java</exclude>
209+
</excludes>
210+
<googleJavaFormat/>
211+
<removeUnusedImports/>
212+
<!-- <importOrder>-->
213+
<!-- <file>${maven.multiModuleProjectDirectory}/.spotless/eclipse.importorder</file>-->
214+
<!-- </importOrder>-->
215+
<!-- <licenseHeader>-->
216+
<!-- <file>${maven.multiModuleProjectDirectory}/.spotless/copyright.txt</file>-->
217+
<!-- </licenseHeader>-->
218+
</java>
219+
</configuration>
220+
<executions>
221+
<execution>
222+
<id>spotless-apply</id>
223+
<phase>process-sources</phase>
224+
<goals>
225+
<goal>apply</goal>
226+
</goals>
227+
</execution>
228+
<execution>
229+
<id>spotless-check</id>
230+
<phase>verify</phase>
231+
<goals>
232+
<goal>check</goal>
233+
</goals>
234+
</execution>
235+
</executions>
236+
</plugin>
186237
</plugins>
187238

188239
</pluginManagement>

0 commit comments

Comments
 (0)