Class ManagedScopeDeriver

java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeDeriver
org.eclipse.aether.internal.impl.scope.ManagedScopeDeriver

public final class ManagedScopeDeriver extends org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeDeriver
A scope deriver for use with ConflictResolver that supports the scopes from ScopeManager. It basically chooses "narrowest" scope, based on parent and child scopes.

This class also "bridges" between DependencyScope and Resolver that uses plain string labels for scopes.

Since:
4.0.0
  • Constructor Details

  • Method Details

    • deriveScope

      public void deriveScope(org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeContext context)
      Specified by:
      deriveScope in class org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeDeriver
    • getDerivedScope

      public String getDerivedScope(String parentScope, String childScope)
      Visible for testing. It chooses "narrowest" scope out of parent or child, unless child is system scope.