EnforcerRule, EnforcerRule2public class RequireReleaseDeps extends AbstractBanDependencies
| Constructor | Description |
|---|---|
RequireReleaseDeps() |
| Modifier and Type | Method | 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) |
Override parent to allow optional ignore of this rule.
|
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, setSearchTransitivegetCacheId, isCacheable, isResultValidgetLevel, getMessage, setLevel, setMessagepublic void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
execute in interface EnforcerRuleexecute in class AbstractBanDependencieshelper - the enforcerRuleHelperEnforcerRuleException - when an exception occursprotected Set<org.apache.maven.artifact.Artifact> checkDependencies(Set<org.apache.maven.artifact.Artifact> dependencies, org.apache.maven.plugin.logging.Log log) throws EnforcerRuleException
checkDependencies in class AbstractBanDependenciesdependencies - the dependencieslog - the logEnforcerRuleException - the enforcer rule exceptionpublic Set<org.apache.maven.artifact.Artifact> filterArtifacts(Set<org.apache.maven.artifact.Artifact> dependencies)
public final boolean isOnlyWhenRelease()
public final void setOnlyWhenRelease(boolean onlyWhenRelease)
public final boolean isFailWhenParentIsSnapshot()
public final void setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.