I am getting class not found error. The the class is not accessible through class loader and an error is being prompt when running the sonarrunner from gradle.
These c
To perform source code analysis the SQ Java plugin needs bytecode in addition to the source code. Bytecode location for source files is provided thanks to properties sonar.java.binaries
and sonar.java.test.binaries
. Bytecode (or JAR) locations for third party libs is provided by properties sonar.java.libraries
and sonar.java.test.libraries
.
If you don't provide correctly those properties then you'll see some 'Class not found' errors. That doesn't prevent to complete the analysis but many SQ Java rules will probably not work and not detect any issue.
(Partial) example:
sonar-runner -Dsonar.sources=src -Dsonar.java.binaries=bin/classes -Dsonar.java.libraries=libs/*.jar