Skip to end of metadata
Go to start of metadata

If you are not using Maven or Gradle for analysis, you must manually provide bytecode to the analysis.

You can also analyse test code, and for that you need to provide tests binaires and test libraries properties.

KeyDescription

sonar.java.binaries

REQUIRED

Comma-separated paths to directories containing the compiled bytecode files corresponding to your source files.

Since 4.12, analysis will fail with the message :

Please provide compiled classes of your project with sonar.java.binaries property

sonar.java.libraries

Comma-separated paths to files with third-party libraries (JAR or Zip files) used by your project.
Wildcards can be used :

sonar.java.libraries=path/to/specific/Library.jar,path/to/libs/*.jar,directory/**/*.jar

sonar.java.test.binaries

Comma-separated paths to directories containing the compiled bytecode files corresponding to your test files

sonar.java.test.libraries

Comma-separated paths to files with third-party libraries (JAR or Zip files) used by your tests. (For example, this should include the junit jar).
Wildcards can be used :

sonar.java.test.libraries=path/to/specific/Library.jar,path/to/libs/*.jar,directory/**/*.jar
  • No labels