I recently tried to upgrade my Gradle build to SonarQube plugin 2.2 and encountered the following error:
Caused by: java.lang.IllegalStateException: No files
I had to put path to the class files
sonar.java.binaries=target/
sonar-project.properties
Sonar version 6.2