Analyses one or more projects with the Sonar Runner.
Can be used with or without the "sonar-runner"
plugin.
If used together with the plugin, sonarProperties
will be populated with defaults based on Gradle's object model and user-defined
values configured via SonarRunnerExtension and SonarRunnerRootExtension.
If used without the plugin, all properties have to be configured manually.
For more information on how to configure the Sonar Runner, and on which properties are available, see the Sonar Runner documentation.
Type | Name and description |
---|---|
protected FileResolver |
getFileResolver() |
JavaForkOptions |
getForkOptions() Options for the analysis process. |
Map<String, Object> |
getSonarProperties() The String key/value pairs to be passed to the Sonar Runner. |
void |
run() |
Options for the analysis process. Configured via SonarRunnerRootExtension.forkOptions.
The String key/value pairs to be passed to the Sonar Runner.
null
values are not permitted.