SonarRunner

API Documentation:SonarRunner

Note: This class is incubating and may change in a future version of Gradle.

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.

Properties

PropertyDescription
forkOptions
Incubating

Options for the analysis process. Configured via SonarRunnerRootExtension.forkOptions().

sonarProperties
Incubating

The String key/value pairs to be passed to the Sonar Runner. null values are not permitted.

Methods

No methods

Script blocks

No script blocks

Property details

JavaForkOptions forkOptions (read-only)

Note: This property is incubating and may change in a future version of Gradle.

Options for the analysis process. Configured via SonarRunnerRootExtension.forkOptions().

Map<String, Object> sonarProperties (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The String key/value pairs to be passed to the Sonar Runner. null values are not permitted.