public class RequireReleaseDeps extends AbstractBanDependencies
Modifier and Type | Field and Description |
---|---|
List |
excludes
Dependencies to ignore when checking for release versions.
|
boolean |
failWhenParentIsSnapshot
Allows this rule to fail when the parent is defined as a snapshot.
|
List |
includes
Dependencies to include when checking for release versions.
|
boolean |
onlyWhenRelease
Allows this rule to execute only when this project is a release.
|
message
Constructor and Description |
---|
RequireReleaseDeps() |
Modifier and Type | Method and Description |
---|---|
protected Set |
checkDependencies(Set dependencies,
org.apache.maven.plugin.logging.Log log)
Checks the set of dependencies to see if any snapshots are included
|
void |
execute(EnforcerRuleHelper helper)
Override parent to allow optional ignore of this rule.
|
Set |
filterArtifacts(Set dependencies) |
boolean |
isFailWhenParentIsSnapshot() |
boolean |
isOnlyWhenRelease() |
void |
setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot) |
void |
setOnlyWhenRelease(boolean onlyWhenRelease) |
getDependenciesToCheck, getErrorMessage, getMessage, isSearchTransitive, setMessage, setSearchTransitive
getCacheId, isCacheable, isResultValid
public boolean onlyWhenRelease
public boolean failWhenParentIsSnapshot
public List excludes
public List includes
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
execute
in interface EnforcerRule
execute
in class AbstractBanDependencies
helper
- the helperEnforcerRuleException
- the enforcer rule exceptionprotected Set checkDependencies(Set dependencies, org.apache.maven.plugin.logging.Log log) throws EnforcerRuleException
checkDependencies
in class AbstractBanDependencies
dependencies
- the dependencieslog
- the logEnforcerRuleException
- the enforcer rule exceptionpublic boolean isOnlyWhenRelease()
public void setOnlyWhenRelease(boolean onlyWhenRelease)
public boolean isFailWhenParentIsSnapshot()
public void setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot)
Copyright © 2007-2012 Apache Software Foundation. All Rights Reserved.