Skip to content

Commit 8a9addf

Browse files
Enable checkstyle and spotless plugins
1 parent 86feda3 commit 8a9addf

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

pom.xml

+27
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
</developers>
6060

6161
<properties>
62+
<!-- some of plugins requires JDK 11 -->
63+
<recommendedJavaBuildVersion>11</recommendedJavaBuildVersion>
64+
6265
<!-- override from parent pom, here we need more control -->
6366
<maven-enforcer-plugin.version>3.2.1</maven-enforcer-plugin.version>
6467
<!-- we need dot less properties for .vm -->
@@ -210,5 +213,29 @@
210213
</plugins>
211214
</build>
212215
</profile>
216+
217+
<profile>
218+
<id>java11+</id>
219+
<activation>
220+
<jdk>[11,)</jdk>
221+
</activation>
222+
223+
<build>
224+
<!--- newer versions of plugins requires JDK 11 -->
225+
<plugins>
226+
<plugin>
227+
<groupId>com.diffplug.spotless</groupId>
228+
<artifactId>spotless-maven-plugin</artifactId>
229+
</plugin>
230+
<plugin>
231+
<groupId>org.apache.maven.plugins</groupId>
232+
<artifactId>maven-checkstyle-plugin</artifactId>
233+
<configuration>
234+
<configLocation>${checkstyle.spotless.config}</configLocation>
235+
</configuration>
236+
</plugin>
237+
</plugins>
238+
</build>
239+
</profile>
213240
</profiles>
214241
</project>

0 commit comments

Comments
 (0)