Skip to content

Commit

Permalink
Merge pull request #14 from xstefank/fix-distinct
Browse files Browse the repository at this point in the history
Add distinct to Upgrade mojo
  • Loading branch information
TomasHofman authored May 29, 2024
2 parents 157713e + 48b5c70 commit 9e3c2bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public void execute() throws MojoExecutionException {

// if channel was given as an input, insert channel repositories into the parent pom
if (injectRepositories) {
Map<String, String> repositoriesToInject = channels.stream().flatMap(c -> c.getRepositories().stream())
Map<String, String> repositoriesToInject = channels.stream().flatMap(c -> c.getRepositories().stream()).distinct()
.collect(Collectors.toMap(Repository::getId, Repository::getUrl));
InjectRepositoriesMojo.insertRepositories(rootProject, rootManipulator, repositoriesToInject);
}
Expand Down

0 comments on commit 9e3c2bb

Please sign in to comment.