File tree Expand file tree Collapse file tree 3 files changed +72
-2
lines changed Expand file tree Collapse file tree 3 files changed +72
-2
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright $YEAR Google Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
+ * in compliance with the License. You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
10
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11
+ * or implied. See the License for the specific language governing permissions and limitations under
12
+ * the License.
13
+ */
14
+
Original file line number Diff line number Diff line change 19
19
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
20
20
<modelVersion >4.0.0</modelVersion >
21
21
22
- <groupId >com.google.googlejavaformat</groupId >
23
22
<artifactId >google-java-format-eclipse-plugin</artifactId >
24
23
<packaging >eclipse-plugin</packaging >
25
24
<version >1.13.0</version >
26
-
25
+ <parent >
26
+ <groupId >com.google.googlejavaformat</groupId >
27
+ <artifactId >google-java-format-parent</artifactId >
28
+ <version >HEAD-SNAPSHOT</version >
29
+ </parent >
27
30
<name >Google Java Format Plugin for Eclipse 4.5+</name >
28
31
29
32
<description >
Original file line number Diff line number Diff line change 183
183
<artifactId >maven-bundle-plugin</artifactId >
184
184
<version >5.1.4</version >
185
185
</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
+ <licenseHeader >
213
+ <file >${maven.multiModuleProjectDirectory} /.spotless/licence.header</file >
214
+ </licenseHeader >
215
+ </java >
216
+ </configuration >
217
+ <executions >
218
+ <execution >
219
+ <id >spotless-apply</id >
220
+ <phase >process-sources</phase >
221
+ <goals >
222
+ <goal >apply</goal >
223
+ </goals >
224
+ </execution >
225
+ <execution >
226
+ <id >spotless-check</id >
227
+ <phase >verify</phase >
228
+ <goals >
229
+ <goal >check</goal >
230
+ </goals >
231
+ </execution >
232
+ </executions >
233
+ </plugin >
186
234
</plugins >
235
+
187
236
</pluginManagement >
188
237
189
238
<plugins >
295
344
</argLine >
296
345
</configuration >
297
346
</plugin >
347
+ <plugin >
348
+ <groupId >com.diffplug.spotless</groupId >
349
+ <artifactId >spotless-maven-plugin</artifactId >
350
+ </plugin >
298
351
</plugins >
299
352
</build >
300
353
You can’t perform that action at this time.
0 commit comments