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-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 6cb2e5a  Parameterize PMD plugin with its underlying implementation 
version and use latest.
6cb2e5a is described below

commit 6cb2e5a9378c312daafd6f26014355143ec6add0
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Nov 18 15:13:03 2021 -0500

    Parameterize PMD plugin with its underlying implementation version and
    use latest.
---
 pom.xml | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 60e2cff..021e056 100644
--- a/pom.xml
+++ b/pom.xml
@@ -651,6 +651,8 @@
     <commons.surefire.version>3.0.0-M5</commons.surefire.version>
     <commons.javadoc.version>3.3.1</commons.javadoc.version>
     <commons.japicmp.version>0.15.3</commons.japicmp.version>
+    <commons.pmd.version>3.15.0</commons.pmd.version>
+    <commons.pmd-impl.version>6.40.0</commons.pmd-impl.version>
 
     <!-- Commons Release Plugin -->
     <commons.bc.version>3.12.0</commons.bc.version>
@@ -679,6 +681,21 @@
             </excludes>
           </configuration>
         </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-pmd-plugin</artifactId>
+          <version>${commons.pmd.version}</version>
+          <dependencies>
+            <dependency>
+              <groupId>net.sourceforge.pmd</groupId>
+              <artifactId>pmd-java8</artifactId>
+              <version>${commons.pmd-impl.version}</version>
+            </dependency>
+          </dependencies>
+          <configuration>
+            <targetJdk>${maven.compiler.target}</targetJdk>
+          </configuration>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
@@ -861,11 +878,8 @@
         </configuration>
       </plugin>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-pmd-plugin</artifactId>
-        <version>3.15.0</version>
-        <configuration>
-          <targetJdk>${maven.compiler.target}</targetJdk>
-        </configuration>
       </plugin>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>

Reply via email to