public class RequireUpperBoundDeps extends AbstractNonCacheableEnforcerRule
| Constructor and Description |
|---|
RequireUpperBoundDeps() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
void |
setExcludes(List<String> excludes)
Sets dependencies to exclude.
|
void |
setIncludes(List<String> includes)
Sets dependencies to include.
|
void |
setUniqueVersions(boolean uniqueVersions)
Set to
true if timestamped snapshots should be used. |
getCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic RequireUpperBoundDeps()
public void setUniqueVersions(boolean uniqueVersions)
true if timestamped snapshots should be used.uniqueVersions - public void setExcludes(List<String> excludes)
excludes - a list of groupId:artifactId namespublic void setIncludes(List<String> includes)
includes - a list of groupId:artifactId namespublic void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRulehelper - The helper provides access to the log, MavenSession and has
helpers to get common components. It is also able to lookup components
by class name.EnforcerRuleException - the enforcer rule exceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.