Move checkstyle configuration into plugin management

This commit is contained in:
Andreas Dangel 2018-12-02 10:25:13 +01:00
parent 66315c6e30
commit d53851f409

70
pom.xml
View File

@ -488,6 +488,36 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.version}</version>
<executions>
<execution>
<id>checkstyle-check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>8.12</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-build-tools-config</artifactId>
<version>${pmd.build-tools.version}</version>
</dependency>
</dependencies>
<configuration>
<configLocation>/net/sourceforge/pmd/pmd-checkstyle-config.xml</configLocation>
<suppressionsLocation>/net/sourceforge/pmd/pmd-checkstyle-suppressions.xml</suppressionsLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<sourceDirectories>
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
</sourceDirectories>
<resourceIncludes>**/*.properties,**/*.less</resourceIncludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -640,36 +670,7 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
<execution>
<id>checkstyle-check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>8.12</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-build-tools-config</artifactId>
<version>${pmd.build-tools.version}</version>
</dependency>
</dependencies>
<configuration>
<configLocation>/net/sourceforge/pmd/pmd-checkstyle-config.xml</configLocation>
<suppressionsLocation>/net/sourceforge/pmd/pmd-checkstyle-suppressions.xml</suppressionsLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<sourceDirectories>
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
</sourceDirectories>
<resourceIncludes>**/*.properties,**/*.less</resourceIncludes>
</configuration>
<!-- configuration is in plugin management section -->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -745,14 +746,7 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.version}</version>
<configuration>
<configLocation>/net/sourceforge/pmd/pmd-checkstyle-config.xml</configLocation>
<suppressionsLocation>/net/sourceforge/pmd/pmd-checkstyle-suppressions.xml</suppressionsLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<sourceDirectories>
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
</sourceDirectories>
</configuration>
<!-- configuration is in plugin management section -->
<reportSets>
<reportSet>
<reports>