Skip to content

Commit fc58b78

Browse files
committed
switching to spotless maven plugin as validator
1 parent cf0a862 commit fc58b78

File tree

5 files changed

+33
-54
lines changed

5 files changed

+33
-54
lines changed

examples/pom.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,6 @@
9494
</execution>
9595
</executions>
9696
</plugin>
97-
<plugin>
98-
<groupId>com.coveo</groupId>
99-
<artifactId>fmt-maven-plugin</artifactId>
100-
<version>2.2.0</version>
101-
<executions>
102-
<execution>
103-
<phase>test</phase>
104-
<goals>
105-
<goal>check</goal>
106-
</goals>
107-
</execution>
108-
</executions>
109-
</plugin>
11097
</plugins>
11198
</build>
11299

extended/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,6 @@
117117
<reuseForks>false</reuseForks>
118118
</configuration>
119119
</plugin>
120-
<plugin>
121-
<groupId>com.coveo</groupId>
122-
<artifactId>fmt-maven-plugin</artifactId>
123-
<executions>
124-
<execution>
125-
<phase>test</phase>
126-
<goals>
127-
<goal>check</goal>
128-
</goals>
129-
</execution>
130-
</executions>
131-
</plugin>
132120
</plugins>
133121
</build>
134122

pom.xml

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,6 @@
267267
<trimStackTrace>false</trimStackTrace> <!-- SUREFIRE-1226 workaround -->
268268
</configuration>
269269
</plugin>
270-
<plugin>
271-
<groupId>com.coveo</groupId>
272-
<artifactId>fmt-maven-plugin</artifactId>
273-
<version>2.5.0</version>
274-
</plugin>
275270
<plugin>
276271
<groupId>org.apache.maven.plugins</groupId>
277272
<artifactId>maven-deploy-plugin</artifactId>
@@ -300,6 +295,39 @@
300295
<autoReleaseAfterClose>true</autoReleaseAfterClose>
301296
</configuration>
302297
</plugin>
298+
<plugin>
299+
<groupId>com.diffplug.spotless</groupId>
300+
<artifactId>spotless-maven-plugin</artifactId>
301+
<version>1.31.3</version>
302+
<configuration>
303+
<formats>
304+
<format>
305+
<trimTrailingWhitespace/>
306+
<endWithNewline/>
307+
</format>
308+
</formats>
309+
<java>
310+
<removeUnusedImports/> <!-- self-explanatory -->
311+
<googleJavaFormat/>
312+
<licenseHeader>
313+
<content>
314+
/*
315+
Copyright 2020 The Kubernetes Authors.
316+
Licensed under the Apache License, Version 2.0 (the "License");
317+
you may not use this file except in compliance with the License.
318+
You may obtain a copy of the License at
319+
http://www.apache.org/licenses/LICENSE-2.0
320+
Unless required by applicable law or agreed to in writing, software
321+
distributed under the License is distributed on an "AS IS" BASIS,
322+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
323+
See the License for the specific language governing permissions and
324+
limitations under the License.
325+
*/
326+
</content>
327+
</licenseHeader>
328+
</java>
329+
</configuration>
330+
</plugin>
303331
</plugins>
304332
</build>
305333
<profiles>

spring/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,6 @@
106106
<reuseForks>false</reuseForks>
107107
</configuration>
108108
</plugin>
109-
<plugin>
110-
<groupId>com.coveo</groupId>
111-
<artifactId>fmt-maven-plugin</artifactId>
112-
<executions>
113-
<execution>
114-
<phase>test</phase>
115-
<goals>
116-
<goal>check</goal>
117-
</goals>
118-
</execution>
119-
</executions>
120-
</plugin>
121109
</plugins>
122110
</build>
123111
</project>

util/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,6 @@
145145
<reuseForks>false</reuseForks>
146146
</configuration>
147147
</plugin>
148-
<plugin>
149-
<groupId>com.coveo</groupId>
150-
<artifactId>fmt-maven-plugin</artifactId>
151-
<executions>
152-
<execution>
153-
<phase>test</phase>
154-
<goals>
155-
<goal>check</goal>
156-
</goals>
157-
</execution>
158-
</executions>
159-
</plugin>
160148
</plugins>
161149
</build>
162150
</project>

0 commit comments

Comments
 (0)