Skip to content

Commit e9fcdaf

Browse files
Enable spotless plugin - automatic code formatting
1 parent 8cc4764 commit e9fcdaf

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

pom.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130

131131
<properties>
132132
<mavenVersion>3.2.5</mavenVersion>
133+
<recommendedJavaBuildVersion>11</recommendedJavaBuildVersion>
133134
<project.build.outputTimestamp>2022-08-16T21:49:15Z</project.build.outputTimestamp>
134135
</properties>
135136

@@ -227,6 +228,9 @@
227228
<plugin>
228229
<groupId>org.apache.maven.plugins</groupId>
229230
<artifactId>maven-checkstyle-plugin</artifactId>
231+
<configuration>
232+
<configLocation>${checkstyle.spotless.config}</configLocation>
233+
</configuration>
230234
</plugin>
231235
<plugin>
232236
<groupId>org.apache.maven.plugins</groupId>
@@ -242,7 +246,6 @@
242246
</plugins>
243247
</build>
244248

245-
246249
<reporting>
247250
<plugins>
248251
<plugin>
@@ -259,6 +262,20 @@
259262
</reporting>
260263

261264
<profiles>
265+
<profile>
266+
<id>java11+</id>
267+
<activation>
268+
<jdk>[11,)</jdk>
269+
</activation>
270+
<build>
271+
<plugins>
272+
<plugin>
273+
<groupId>com.diffplug.spotless</groupId>
274+
<artifactId>spotless-maven-plugin</artifactId>
275+
</plugin>
276+
</plugins>
277+
</build>
278+
</profile>
262279
<profile>
263280
<id>run-its</id>
264281
<build>

0 commit comments

Comments
 (0)