Class RwconfigExtension
java.lang.Object
net.rabbitware.config.gradle.RwconfigExtension
The
rwconfig { } block. Every setting matches one of the Maven
plugin's, and can also be given as a Gradle property with the same name - so
-Prwconfig.skip=true works as -Drwconfig.skip=true does there.-
Constructor Summary
ConstructorsConstructorDescriptionCreated by Gradle, which supplies the abstract properties. -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Boolean> Whether a finding of error severity fails the build.abstract org.gradle.api.file.RegularFilePropertygetFile()Where therwconfigfile is.abstract org.gradle.api.provider.Property<Boolean> Whether to report properties that are declared but never read.abstract org.gradle.api.provider.Property<Boolean> getSkip()Skip the check entirely.abstract org.gradle.api.provider.ListProperty<String> Rules to ignore, by id - for exampleunread-property.
-
Constructor Details
-
RwconfigExtension
public RwconfigExtension()Created by Gradle, which supplies the abstract properties.
-
-
Method Details
-
getFile
public abstract org.gradle.api.file.RegularFileProperty getFile()Where therwconfigfile is. When unset, the usual places are searched:src/main/resources/rwconfig, thenrwconfigin the project directory. A project with neither is not checked.- Returns:
- the property
-
getFailOnError
Whether a finding of error severity fails the build. Defaults to true.- Returns:
- the property
-
getReportUnread
Whether to report properties that are declared but never read. Defaults to true.- Returns:
- the property
-
getSkipRules
Rules to ignore, by id - for exampleunread-property.- Returns:
- the property
-
getSkip
Skip the check entirely. Defaults to false.- Returns:
- the property
-