Skip to content

Commit

Permalink
Enable spotless plugin - automatic code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Mar 18, 2023
1 parent 8cc4764 commit e9fcdaf
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@

<properties>
<mavenVersion>3.2.5</mavenVersion>
<recommendedJavaBuildVersion>11</recommendedJavaBuildVersion>
<project.build.outputTimestamp>2022-08-16T21:49:15Z</project.build.outputTimestamp>
</properties>

Expand Down Expand Up @@ -227,6 +228,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>${checkstyle.spotless.config}</configLocation>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -242,7 +246,6 @@
</plugins>
</build>


<reporting>
<plugins>
<plugin>
Expand All @@ -259,6 +262,20 @@
</reporting>

<profiles>
<profile>
<id>java11+</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>run-its</id>
<build>
Expand Down

0 comments on commit e9fcdaf

Please sign in to comment.