public final class DependencyConfigurer
extends java.lang.Object
implements io.spine.logging.Logging
spine-errorprone-checks
dependency to the given project Configuration
.Modifier and Type | Method and Description |
---|---|
boolean |
addErrorProneChecksDependency()
Adds the
io.spine.tools.spine-errorprone-checks dependency to the project
configuration. |
static DependencyConfigurer |
createFor(org.gradle.api.artifacts.Configuration configuration)
Create the
DependencyConfigurer for the given project Configuration . |
public static DependencyConfigurer createFor(org.gradle.api.artifacts.Configuration configuration)
DependencyConfigurer
for the given project Configuration
.configuration
- the configurationDependencyConfigurer
instancepublic boolean addErrorProneChecksDependency()
io.spine.tools.spine-errorprone-checks
dependency to the project
configuration.
If the dependency cannot be resolved, the method does nothing and returns false
.
true
if the dependency was resolved successfully and false
otherwise