Index: applications/editors/josm/plugins/mapillary/build.gradle
===================================================================
--- applications/editors/josm/plugins/mapillary/build.gradle	(revision 31977)
+++ applications/editors/josm/plugins/mapillary/build.gradle	(revision 32063)
@@ -3,4 +3,5 @@
 apply plugin: 'jacoco'
 apply plugin: 'java'
+apply plugin: 'pmd'
 apply plugin: 'project-report'
 
@@ -64,6 +65,18 @@
   project {
     name = 'JOSM-Mapillary'
-    natures 'org.sonarlint.eclipse.core.sonarlintNature'
+    comment = property('plugin.description')
+    natures 'org.sonarlint.eclipse.core.sonarlintNature', 'ch.acanda.eclipse.pmd.builder.PMDNature'
+    buildCommand 'ch.acanda.eclipse.pmd.builder.PMDBuilder'
   }
+}
+eclipseClasspath.dependsOn cleanEclipseClasspath
+eclipseProject.dependsOn cleanEclipseProject
+tasks.eclipse.dependsOn = ['eclipseClasspath', 'eclipseProject']
+
+pmd {
+  toolVersion '5.4.1'
+  ignoreFailures true
+  targetJdk sourceCompatibility
+  ruleSetFiles = files('.settings/pmd-ruleset.xml')
 }
 
@@ -79,6 +92,6 @@
   toolVersion = "3.0.1"
   ignoreFailures = true
-  effort = "min"
-  reportLevel = "high"
+  effort = "max"
+  reportLevel = "low"
 }
 tasks.withType(FindBugs) {
