public class SonarQubeProperties
extends java.lang.Object
The properties map is already populated with the defaults provided by Gradle, and can be further manipulated as necessary.
Before passing them on to the SonarQube Scanner, property values are converted to Strings as follows:
Iterables are recursively converted and joined into a comma-separated String.toString() method.| Constructor and Description |
|---|
SonarQubeProperties(java.util.Map<java.lang.String,java.lang.Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
void |
properties(java.util.Map<java.lang.String,?> properties)
Convenience method for setting multiple properties.
|
void |
property(java.lang.String key,
java.lang.Object value)
Convenience method for setting a single property.
|
public SonarQubeProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
public void property(java.lang.String key,
java.lang.Object value)
key - the key of the property to be addedvalue - the value of the property to be addedpublic void properties(java.util.Map<java.lang.String,?> properties)
properties - the properties to be addedpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()