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

[commons-logging] branch master updated: Add checkstyle to default goal.

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

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


The following commit(s) were added to refs/heads/master by this push:
     new f90d7f9  Add checkstyle to default goal.
f90d7f9 is described below

commit f90d7f92eaef533a3de13465e2e1a563baa4cc41
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Dec 15 09:53:19 2020 -0500

    Add checkstyle to default goal.
---
 pom.xml | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 4c1e955..bb1c1a8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -179,7 +179,7 @@ under the License.
   <build>
     <!-- TODO spotbugs:check -->
     <!-- TODO replace clirr:check with japicmp:cmp -->
-    <defaultGoal>clean apache-rat:check clirr:check javadoc:javadoc package</defaultGoal>
+    <defaultGoal>clean apache-rat:check clirr:check javadoc:javadoc checkstyle:check package</defaultGoal>
     <plugins>
 
       <!--
@@ -458,6 +458,17 @@ under the License.
         </dependencies>
       </plugin>
 
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <version>2.7</version>
+        <configuration>
+          <configLocation>${basedir}/checkstyle.xml</configLocation>
+          <enableRulesSummary>false</enableRulesSummary>
+          <headerFile>${basedir}/license-header.txt</headerFile>
+        </configuration>
+      </plugin>
+
     </plugins>
   </build>