Skip to content

Commit

Permalink
Enable checkstyle and spotless plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Feb 20, 2023
1 parent 86feda3 commit 8a9addf
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
</developers>

<properties>
<!-- some of plugins requires JDK 11 -->
<recommendedJavaBuildVersion>11</recommendedJavaBuildVersion>

<!-- override from parent pom, here we need more control -->
<maven-enforcer-plugin.version>3.2.1</maven-enforcer-plugin.version>
<!-- we need dot less properties for .vm -->
Expand Down Expand Up @@ -210,5 +213,29 @@
</plugins>
</build>
</profile>

<profile>
<id>java11+</id>
<activation>
<jdk>[11,)</jdk>
</activation>

<build>
<!--- newer versions of plugins requires JDK 11 -->
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>${checkstyle.spotless.config}</configLocation>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 8a9addf

Please sign in to comment.