I have the same behavior (problem) even with:
sonar.sources=.
sonar.tests=.
I thought the problem could be a wrong configuration pattern. But seems really the point is ignore or avoid src/test/java
. Something related with:
Thanks for the link about Gradle
I will do a research.