Class RequireUpperBoundDeps
java.lang.Object
org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
org.apache.maven.enforcer.rules.dependency.RequireUpperBoundDeps
- All Implemented Interfaces:
EnforcerRuleBase
@Named("requireUpperBoundDeps")
public final class RequireUpperBoundDeps
extends AbstractStandardEnforcerRule
Rule to enforce that the resolved dependency is also the most recent one of all transitive dependencies.
- Since:
- 1.1
- Author:
- Geoffrey De Smet
-
Constructor Summary
ConstructorDescriptionRequireUpperBoundDeps
(org.apache.maven.enforcer.rules.dependency.ResolverUtil resolverUtil) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
getLog()
void
setExcludes
(List<String> excludes) Sets dependencies to exclude.void
setIncludes
(List<String> includes) Sets dependencies to include.void
setLog
(EnforcerLogger arg0) Methods inherited from class org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
formatLocation, getMessage, setMessage
Methods inherited from class org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
getCacheId, getLevel
-
Constructor Details
-
RequireUpperBoundDeps
@Inject public RequireUpperBoundDeps(org.apache.maven.enforcer.rules.dependency.ResolverUtil resolverUtil)
-
-
Method Details
-
setExcludes
Sets dependencies to exclude.- Parameters:
excludes
- a list ofgroupId:artifactId
names
-
setIncludes
Sets dependencies to include.- Parameters:
includes
- a list ofgroupId:artifactId
names
-
execute
- Specified by:
execute
in classAbstractEnforcerRule
- Throws:
EnforcerRuleException
-
setLog
- Specified by:
setLog
in interfaceEnforcerRuleBase
-
getLog
-