Skip to content

Commit 5338a18

Browse files
Add mvn import sort plugin
Signed-off-by: gabriel-farache <[email protected]>
1 parent 0602297 commit 5338a18

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
<version.org.wiremock>3.13.0</version.org.wiremock>
3737
<version.com.github.tomakehurst>2.35.2</version.com.github.tomakehurst>
3838
<version.io.swagger.parser>2.1.26</version.io.swagger.parser>
39+
<version.impsort-maven>1.12.0</version.impsort-maven>
3940
</properties>
4041
<dependencyManagement>
4142
<dependencies>
@@ -127,6 +128,24 @@
127128
<artifactId>quarkus-config-doc-maven-plugin</artifactId>
128129
<version>${quarkus.version}</version>
129130
</plugin>
131+
<plugin>
132+
<groupId>net.revelc.code</groupId>
133+
<artifactId>impsort-maven-plugin</artifactId>
134+
<version>${version.impsort-maven}</version>
135+
<configuration>
136+
<groups>java.,javax.,org.,com., io.,jakarta.</groups>
137+
<staticGroups>java,*</staticGroups>
138+
<removeUnused>true</removeUnused>
139+
</configuration>
140+
<executions>
141+
<execution>
142+
<id>sort-imports</id>
143+
<goals>
144+
<goal>sort</goal><!-- runs at process-sources phase by default -->
145+
</goals>
146+
</execution>
147+
</executions>
148+
</plugin>
130149
</plugins>
131150
</pluginManagement>
132151
</build>

0 commit comments

Comments
 (0)