@Deprecated public class SonarRunnerRootExtension extends SonarRunnerExtension
SonarRunnerExtension that is used for the root of the project tree being analyzed.
This extension provides extra configuration options that are only applicable to the analysis as a whole, and therefore is used for the project (typically the root) that the plugin is applied too.
Example usage:
sonarRunner {
toolVersion = '2.3' // default
forkOptions {
maxHeapSize = '1024m'
jvmArgs '-XX:MaxPermSize=128m'
}
}
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SONAR_RUNNER_VERSION
Deprecated.
The version of Sonar Runner used if another version was not specified with
setToolVersion(String). |
SONAR_RUNNER_CONFIGURATION_NAME, SONAR_RUNNER_EXTENSION_NAME, SONAR_RUNNER_TASK_NAME| Constructor and Description |
|---|
SonarRunnerRootExtension(org.gradle.listener.ActionBroadcast<SonarProperties> propertiesActions)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
forkOptions(Action<? super JavaForkOptions> action)
Deprecated.
Configure the
forkOptions. |
JavaForkOptions |
getForkOptions()
Deprecated.
Options for the Sonar Runner process.
|
String |
getToolVersion()
Deprecated.
Version of Sonar Runner JARs to use.
|
void |
setForkOptions(JavaForkOptions forkOptions)
Deprecated.
|
void |
setToolVersion(String toolVersion)
Deprecated.
|
isSkipProject, setSkipProject, sonarPropertiespublic static final String DEFAULT_SONAR_RUNNER_VERSION
setToolVersion(String).
Value: "2.3"
public SonarRunnerRootExtension(org.gradle.listener.ActionBroadcast<SonarProperties> propertiesActions)
public void forkOptions(Action<? super JavaForkOptions> action)
forkOptions.action - the action to use to configure forkOptionspublic String getToolVersion()
Defaults to 2.3.
public void setToolVersion(String toolVersion)
public JavaForkOptions getForkOptions()
public void setForkOptions(JavaForkOptions forkOptions)