public final class ErrorProneChecksPlugin
extends io.spine.tools.gradle.SpinePlugin
To work, this plugin requires the Error Prone plugin to be applied to the project.
The plugin adds a spine-errorprone-checks
dependency to the project's
annotationProcessor
configuration. For the older Gradle versions (pre 4.6
),
where there is no such configuration, the plugin creates it.
Dependency has the same version as the project's spine-model-compiler
plugin
dependency.
Checks severity may be configured for all checks:
modelCompiler {
spineCheckSeverity = "OFF"
}
or for the specific ones:
spineErrorProneChecks {
useValidatingBuilder = "ERROR"
}
The latter overrides the former.
ValidatingBuilder
Constructor and Description |
---|
ErrorProneChecksPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
apply(org.gradle.api.Project project)
Applies the plugin to the given
Project . |
static java.lang.String |
extensionName() |
logMissingDescriptorSetFile, newTask, resolve