Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ankit--sethi opened this issue Sep 19, 2018 · 0 comments
Open

Comments

@ankit--sethi
Copy link

In a maven multi module project I can set <sonar.java.binaries> as:

<sonar.java.binaries>${project.build.directory}/classes/**</sonar.java.binaries>

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:

<sonar.groovy.binaries>
${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
</sonar.groovy.binaries>

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant