public class RequireReleaseDeps extends AbstractBanDependencies
Constructor and Description |
---|
RequireReleaseDeps() |
Modifier and Type | Method and Description |
---|---|
protected Set<org.apache.maven.artifact.Artifact> |
checkDependencies(Set<org.apache.maven.artifact.Artifact> dependencies,
org.apache.maven.plugin.logging.Log log)
Checks the set of dependencies against the list of excludes.
|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
protected Set<org.apache.maven.artifact.Artifact> |
filterArtifacts(Set<org.apache.maven.artifact.Artifact> dependencies) |
List<String> |
getExcludes() |
List<String> |
getIncludes() |
boolean |
isFailWhenParentIsSnapshot() |
boolean |
isOnlyWhenRelease() |
void |
setExcludes(List<String> excludes) |
void |
setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot) |
void |
setIncludes(List<String> includes) |
void |
setOnlyWhenRelease(boolean onlyWhenRelease) |
getDependenciesToCheck, getErrorMessage, isSearchTransitive, setSearchTransitive
getCacheId, isCacheable, isResultValid
getLevel, getMessage, setLevel, setMessage
public RequireReleaseDeps()
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRule
execute
in interface EnforcerRule
execute
in class AbstractBanDependencies
helper
- 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 exceptionprotected Set<org.apache.maven.artifact.Artifact> checkDependencies(Set<org.apache.maven.artifact.Artifact> dependencies, org.apache.maven.plugin.logging.Log log) throws EnforcerRuleException
AbstractBanDependencies
checkDependencies
in class AbstractBanDependencies
dependencies
- the dependencieslog
- the logEnforcerRuleException
- the enforcer rule exceptionprotected Set<org.apache.maven.artifact.Artifact> filterArtifacts(Set<org.apache.maven.artifact.Artifact> dependencies) throws EnforcerRuleException
EnforcerRuleException
public final boolean isOnlyWhenRelease()
public final void setOnlyWhenRelease(boolean onlyWhenRelease)
public final boolean isFailWhenParentIsSnapshot()
public final void setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot)
public final void setExcludes(List<String> excludes)
public final List<String> getExcludes()
public void setIncludes(List<String> includes)
public List<String> getIncludes()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.