pmayweg / sonar-groovy

SonarQube plugin for Groovy
GNU Lesser General Public License v3.0
52 stars 65 forks source link

<sonar.groovy.binaries> does not work like <sonar.java.binaries> #79

Open ankit--sethi opened 6 years ago

ankit--sethi commented 6 years ago

In a maven multi module project I can set as:

${project.build.directory}/classes/** and it picks up everything within the child modules. The same doesn't happen with with sonar.groovy.binaries where I need to do this: ${project.basedir}/my-child-module/target/classes/com/my-company/my-team/my-app/my-api/dao, ${project.basedir}/my-child-module/target/classes/com/my-company/my-team/my-app/my-api/service, ${project.basedir}/my-child-module/target/classes/com/my-company/my-team/my-app/my-api/workflow, ${project.basedir}/my-child-module/target/classes/com/my-company/my-team/my-app/my-api/config There's actually two issues here together -- the other being that the code assumes all .class files will be inside the /target/classes directory, and does not recursively search inside all the folders present. I need to then list out every possible package name in my project to get all of them. In the above example I had to list .dao .service. workflow .config subpackages individually to get it to work.