|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule
org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule
org.apache.maven.plugins.enforcer.AbstractBanDependencies
org.apache.maven.plugins.enforcer.RequireReleaseDeps
public class RequireReleaseDeps
This rule checks that no snapshots are included.
Field Summary | |
---|---|
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. |
Fields inherited from class org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule |
---|
message |
Constructor Summary | |
---|---|
RequireReleaseDeps()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.apache.maven.plugins.enforcer.AbstractBanDependencies |
---|
getDependenciesToCheck, getErrorMessage, getMessage, isSearchTransitive, setMessage, setSearchTransitive |
Methods inherited from class org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule |
---|
getCacheId, isCacheable, isResultValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean onlyWhenRelease
public boolean failWhenParentIsSnapshot
public List excludes
public List includes
Constructor Detail |
---|
public RequireReleaseDeps()
Method Detail |
---|
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
execute
in interface EnforcerRule
execute
in class AbstractBanDependencies
helper
- the helper
EnforcerRuleException
- 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 log
EnforcerRuleException
- the enforcer rule exceptionpublic Set filterArtifacts(Set dependencies)
public boolean isOnlyWhenRelease()
public void setOnlyWhenRelease(boolean onlyWhenRelease)
public boolean isFailWhenParentIsSnapshot()
public void setFailWhenParentIsSnapshot(boolean failWhenParentIsSnapshot)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |