Class JavaScopeSelector
java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeSelector
org.eclipse.aether.util.graph.transformer.JavaScopeSelector
Deprecated.
This class belongs to consumer project. Resolver should have no notion of scopes.
A scope selector for use with
ConflictResolver
that supports the scopes from JavaScopes
. In general,
this selector picks the widest scope present among conflicting dependencies where e.g. "compile" is wider than
"runtime" which is wider than "test". If however a direct dependency is involved, its scope is selected.-
Constructor Summary
ConstructorDescriptionDeprecated.Creates a new instance of this scope selector. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Determines the effective scope of the dependency given byConflictResolver.ConflictContext.getWinner()
.Methods inherited from class org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeSelector
getInstance
-
Constructor Details
-
JavaScopeSelector
public JavaScopeSelector()Deprecated.Creates a new instance of this scope selector.
-
-
Method Details
-
selectScope
public void selectScope(ConflictResolver.ConflictContext context) throws org.eclipse.aether.RepositoryException Deprecated.Description copied from class:ConflictResolver.ScopeSelector
Determines the effective scope of the dependency given byConflictResolver.ConflictContext.getWinner()
. Implementations will usually iterateConflictResolver.ConflictContext.getItems()
, inspectConflictResolver.ConflictItem.getScopes()
and eventually callConflictResolver.ConflictContext.setScope(String)
to deliver the effective scope.- Specified by:
selectScope
in classConflictResolver.ScopeSelector
- Parameters:
context
- The conflict context, must not benull
.- Throws:
org.eclipse.aether.RepositoryException
- If the scope selection failed.
-