Can i produce a single pmd report in a multi module gradle project?

plugins

(elazaro) #1

Hi, I have a gradle multi module project, i added the pmd plugin to each module, and now, i can generate a report for each one, but i want to generate a single report for all the project, including all the modules reports, is that posible?

Thanks!

Project Structure:

myProject
|
|-module1
  |-src
    |-main
    |-test
  |-build.gradle
|-module2
  |-src
    |-main
    |-test
  |-build.gradle
|-module3
  |-src
    |-main
    |-test
  |-build.gradle
|-build.gradle

Pdm configuracion in each module build.gradle:

apply plugin: ‘pmd’

pmd {
ruleSetConfig = rootProject.resources.text.fromFile(‘pmd/pmd_rules.xml’)
toolVersion = “6.7.0”
reportsDir = file("$project.buildDir/reports/pmd")
ignoreFailures = true
ruleSets = []
rulePriority = 5
}