You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2020/08/28 14:27:15 UTC

[commons-beanutils] 01/02: Add checkstyle configuration to section

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git

commit 38ed2f01d2797ea0d3ae36a3391f50dcb60aaeaf
Author: aherbert <a....@sussex.ac.uk>
AuthorDate: Fri Aug 28 14:53:13 2020 +0100

    Add checkstyle configuration to <build> section
    
    Modified to include the test source directory property but set to false
    (default).
---
 pom.xml | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 06f0939..8136ab0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,6 +53,8 @@
     <commons.clirr.version>2.8</commons.clirr.version>
     <commons.encoding>utf-8</commons.encoding>
     <commons.jacoco.version>0.8.5</commons.jacoco.version>
+    <checkstyle.plugin.version>3.1.1</checkstyle.plugin.version>
+    <checkstyle.version>8.34</checkstyle.version>
     <!-- Commons Release Plugin -->
     <commons.bc.version>2.0.0-SNAPSHOT</commons.bc.version>
     <commons.release.isDistModule>true</commons.release.isDistModule>
@@ -397,6 +399,16 @@
                 <tarLongFileMode>gnu</tarLongFileMode>
             </configuration>
         </plugin>
+        <plugin>
+            <artifactId>maven-checkstyle-plugin</artifactId>
+            <version>${checkstyle.plugin.version}</version>
+            <configuration>
+                <configLocation>${basedir}/checkstyle.xml</configLocation>
+                <includeTestSourceDirectory>false</includeTestSourceDirectory>
+                <enableRulesSummary>false</enableRulesSummary>
+                <resourceExcludes>NOTICE.txt,LICENSE.txt,**/pom.properties,target/**.properties,</resourceExcludes>
+            </configuration>
+        </plugin>
       </plugins>
       <pluginManagement>
         <plugins>
@@ -419,12 +431,13 @@
     <reporting>
         <plugins>
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
-                <version>3.1.1</version>
+                <version>${checkstyle.plugin.version}</version>
                 <configuration>
                     <configLocation>${basedir}/checkstyle.xml</configLocation>
+                    <includeTestSourceDirectory>false</includeTestSourceDirectory>
                     <enableRulesSummary>false</enableRulesSummary>
+                    <resourceExcludes>NOTICE.txt,LICENSE.txt,**/pom.properties,target/**.properties,</resourceExcludes>
                 </configuration>
             </plugin>
             <plugin>