Skip to content

Commit

Permalink
repository libraries: don't resolve same dependencies several times
Browse files Browse the repository at this point in the history
(correction after merge)
  • Loading branch information
chashnikov committed Sep 7, 2017
1 parent 1db28ad commit 723f8ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ mySession, createCollectRequest(groupId, artifactId, constraints, EnumSet.of(kin
}
else {
requests = new ArrayList<>();
for (Artifact artifact : toArtifacts(groupId, artifactId, constraints, artifactKinds)) {
for (Artifact artifact : toArtifacts(groupId, artifactId, constraints, Collections.singleton(kind))) {
requests.add(new ArtifactRequest(artifact, Collections.unmodifiableList(myRemoteRepositories), null));
}
}
Expand Down

0 comments on commit 723f8ad

Please sign in to comment.