Skip to content

Commit

Permalink
Don't calculate exclusions for non transitive configurations
Browse files Browse the repository at this point in the history
All direct dependencies of a configuration are included by default and
all other are excluded by default for non transitive configurations. It
is therefore unnecessary to calculate exclusions.
  • Loading branch information
fp7 committed Dec 18, 2023
1 parent c8d0dcf commit d94f45c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ private void applyMavenExclusions(ResolvableDependencies resolvableDependencies)
}

private Set<DependencyCandidate> findExcludedDependencies() {
if (!this.configuration.isTransitive()) {
return Collections.emptySet();
}
ResolutionResult resolutionResult = copyConfiguration().getIncoming().getResolutionResult();
ResolvedComponentResult root = resolutionResult.getRoot();
Set<DependencyCandidate> excludedDependencies = new HashSet<>();
Expand Down

0 comments on commit d94f45c

Please sign in to comment.