${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.
In a maven multi module project I can set as: