Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
DefaultDependencyCollectorBuilder is using a lot default which are not possible to override for different use cases.
Such
DependencyGraphTransformer transformer = new ConflictResolver( new NearestVersionSelector(), new VerboseJavaScopeSelector(), new SimpleOptionalitySelector(), new JavaScopeDeriver() ); session.setDependencyGraphTransformer( transformer ); DependencySelector depFilter = new AndDependencySelector( new DirectScopeDependencySelector( JavaScopes.TEST ), new DirectScopeDependencySelector( JavaScopes.PROVIDED ), new OptionalDependencySelector(), new ExclusionDependencySelector() ); session.setDependencySelector( depFilter ); session.setConfigProperty( ConflictResolver.CONFIG_PROP_VERBOSE, true ); session.setConfigProperty( DependencyManagerUtils.CONFIG_PROP_VERBOSE, true );
Attachments
Issue Links
- links to