The extension is added to all projects that have the {@code "sonar-runner"} plugin applied, and all of their subprojects.The extension of the project that actually applies the {@code "sonar-runner"} plugin is a subclass of this type, {@link SonarRunnerRootExtension}, which also allows configuration of the Sonar Runner process.
Example usage:
sonarRunner { skipProject = false // this is the default sonarProperties { property "sonar.host.url", "http://my.sonar.server" // adding a single property properties mapOfProperties // adding multiple properties at once properties["sonar.sources"] += sourceSets.other.java.srcDirs // manipulating an existing property } } }
The Sonar configuration is provided by using the {@link #sonarProperties(org.gradle.api.Action)} method and specifying properties.Certain properties are required, such as {@code "sonar.host.url"} which provides the address of the Sonar server.For details on what properties are available, see Analysis Parameters in the Sonar documentation.
The {@code "sonar-runner"} plugin adds default values for several plugins dependening on the nature of the project.Please see the “Sonar Runner Plugin” chapter of the Gradle User Guide for details on which properties are set and their values.
Please see the {@link SonarProperties} class for more information on the mechanics of setting Sonar properties, including laziness and property types.
|
|