Skip to content

Commit 272ae03

Browse files
Configure spotless to remove unused imports
1 parent 774bae4 commit 272ae03

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@
115115
<artifactId>prettier-maven-plugin</artifactId>
116116
<version>${plugin.prettier.version}</version>
117117
</plugin>
118+
<plugin>
119+
<groupId>com.diffplug.spotless</groupId>
120+
<artifactId>spotless-maven-plugin</artifactId>
121+
<version>2.46.1</version>
122+
</plugin>
118123
</plugins>
119124
</pluginManagement>
120125
<plugins>
@@ -307,6 +312,25 @@
307312
</execution>
308313
</executions>
309314
</plugin>
315+
316+
<plugin>
317+
<groupId>com.diffplug.spotless</groupId>
318+
<artifactId>spotless-maven-plugin</artifactId>
319+
<executions>
320+
<execution>
321+
<phase>compile</phase>
322+
<goals>
323+
<goal>apply</goal>
324+
</goals>
325+
</execution>
326+
</executions>
327+
<configuration>
328+
<java>
329+
<removeUnusedImports/>
330+
</java>
331+
</configuration>
332+
</plugin>
333+
310334
<plugin>
311335
<groupId>com.google.cloud.tools</groupId>
312336
<artifactId>jib-maven-plugin</artifactId>

0 commit comments

Comments
 (0)