Skip to content

Commit

Permalink
Spotless should only be run on JDK >= 11, so just use the pluginManag…
Browse files Browse the repository at this point in the history
…ement
  • Loading branch information
gnodet committed Feb 27, 2024
1 parent 169e3c6 commit 148543c
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,26 @@ under the License.
</dependencies>

<build>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<pom>
<includes>
<include>pom.xml</include>
<include>src/it/**/pom.xml</include>
</includes>
</pom>
<java>
<includes>
<include>src/**/*.java</include>
</includes>
</java>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<pom>
<includes>
<include>pom.xml</include>
<include>src/it/**/pom.xml</include>
</includes>
</pom>
<java>
<includes>
<include>src/**/*.java</include>
</includes>
</java>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

0 comments on commit 148543c

Please sign in to comment.