You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2021/07/18 10:50:23 UTC

[sling-org-apache-sling-commons-messaging] 03/08: SLING-10637 Enable code checks with PMD

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

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

commit 40b2ac988478d992a52c87f636376c0defb3b335
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Sun Jul 18 12:37:42 2021 +0200

    SLING-10637 Enable code checks with PMD
---
 pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/pom.xml b/pom.xml
index 51f95d6..bcc034c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -75,6 +75,22 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-pmd-plugin</artifactId>
+        <version>3.14.0</version>
+        <configuration>
+          <targetJdk>${sling.java.version}</targetJdk>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>process-classes</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>