Package org.basepom.mojo.dvc
Class ScopeLimitingFilter
java.lang.Object
org.basepom.mojo.dvc.ScopeLimitingFilter
- All Implemented Interfaces:
org.eclipse.aether.graph.DependencyFilter
public final class ScopeLimitingFilter
extends Object
implements org.eclipse.aether.graph.DependencyFilter
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(org.eclipse.aether.graph.DependencyNode node, List<org.eclipse.aether.graph.DependencyNode> parents) static ScopeLimitingFilter
computeDependencyScope
(String scope) static ScopeLimitingFilter
computeTransitiveScope
(String scope) Returns filter that matches any transitive dependency that would be visible in the given scope.toString()
-
Field Details
-
COMPILE_PLUS_RUNTIME
- See Also:
-
RUNTIME_PLUS_SYSTEM
- See Also:
-
-
Method Details
-
computeDependencyScope
- Parameters:
scope
- A maven scope name.- Returns:
- A filter that matches any dependency that would be visible in the given scope.
-
computeTransitiveScope
Returns filter that matches any transitive dependency that would be visible in the given scope. This is different from the scope above, as not all scopes are fully transitive (e.g. a test dependency is not transitively visible.- Parameters:
scope
- A maven scope name.- Returns:
- A filter that matches any dependency that would be visible in the given scope.
-
accept
public boolean accept(org.eclipse.aether.graph.DependencyNode node, List<org.eclipse.aether.graph.DependencyNode> parents) - Specified by:
accept
in interfaceorg.eclipse.aether.graph.DependencyFilter
-
toString
-