use of org.sonatype.aether.graph.Exclusion in project sonatype-aether by sonatype.
the class ExclusionDependencySelector method deriveChildSelector.
public DependencySelector deriveChildSelector(DependencyCollectionContext context) {
Dependency dependency = context.getDependency();
Collection<Exclusion> exclusions = (dependency != null) ? dependency.getExclusions() : null;
if (exclusions == null || exclusions.isEmpty()) {
return this;
}
Set<Exclusion> merged = new LinkedHashSet<Exclusion>();
merged.addAll(this.exclusions);
merged.addAll(exclusions);
return new ExclusionDependencySelector(merged);
}
Aggregations