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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deriveScope
(org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeContext context) getDerivedScope
(String parentScope, String childScope) Visible for testing.Methods inherited from class org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeDeriver
getInstance
-
Constructor Details
-
ManagedScopeDeriver
-
-
Method Details
-
deriveScope
public void deriveScope(org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeContext context) - Specified by:
deriveScope
in classorg.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeDeriver
-
getDerivedScope
Visible for testing. It chooses "narrowest" scope out of parent or child, unless child is system scope.
-