Skip to content

[MSHARED-1158] DependencyCollectorBuilder more configurable #88

@jira-importer

Description

@jira-importer

Olivier Lamy opened MSHARED-1158 and commented

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 );

Remote Links:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions