public final class JavaScopeSelector extends ConflictResolver.ScopeSelector
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 and Description |
|---|
JavaScopeSelector()
Creates a new instance of this scope selector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
selectScope(ConflictResolver.ConflictContext context)
Determines the effective scope of the dependency given by
ConflictResolver.ConflictContext.getWinner(). |
getInstancepublic JavaScopeSelector()
public void selectScope(ConflictResolver.ConflictContext context) throws org.eclipse.aether.RepositoryException
ConflictResolver.ScopeSelectorConflictResolver.ConflictContext.getWinner().
Implementations will usually iterate ConflictResolver.ConflictContext.getItems(), inspect
ConflictResolver.ConflictItem.getScopes() and eventually call ConflictResolver.ConflictContext.setScope(String) to deliver the
effective scope.selectScope in class ConflictResolver.ScopeSelectorcontext - The conflict context, must not be null.org.eclipse.aether.RepositoryException - If the scope selection failed.Copyright © 2010-2015 The Eclipse Foundation. All Rights Reserved.