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 Details

  • 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 interface org.eclipse.aether.graph.DependencyFilter
    • toString

      public String toString()
      Overrides:
      toString in class Object