Skip to content

Commit 39908bb

Browse files
committed
Updated to add support for Spring Java Format
1 parent 2f0f78a commit 39908bb

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.settings.xml

+3
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,7 @@
8383
</pluginRepositories>
8484
</profile>
8585
</profiles>
86+
<pluginGroups>
87+
<pluginGroup>io.spring.javaformat</pluginGroup>
88+
</pluginGroups>
8689
</settings>

pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
<maven-checkstyle-plugin.includeTestSourceDirectory>true
120120
</maven-checkstyle-plugin.includeTestSourceDirectory>
121121
<java.version>17</java.version>
122+
<spring-javaformat-maven-plugin.version>0.0.34</spring-javaformat-maven-plugin.version>
122123
</properties>
123124

124125
<build>
@@ -237,6 +238,20 @@
237238
<groupId>org.apache.maven.plugins</groupId>
238239
<artifactId>maven-checkstyle-plugin</artifactId>
239240
</plugin>
241+
<plugin>
242+
<groupId>io.spring.javaformat</groupId>
243+
<artifactId>spring-javaformat-maven-plugin</artifactId>
244+
<version>${spring-javaformat-maven-plugin.version}</version>
245+
<executions>
246+
<execution>
247+
<phase>validate</phase>
248+
<inherited>true</inherited>
249+
<goals>
250+
<goal>validate</goal>
251+
</goals>
252+
</execution>
253+
</executions>
254+
</plugin>
240255
</plugins>
241256
</build>
242257

0 commit comments

Comments
 (0)