Consider plugins and imported boms when finding possible dependency upgrades

Closes gh-20483
pull/20495/head
Andy Wilkinson 5 years ago
parent 4a0b8bb5ba
commit f083aefba6

@ -70,6 +70,14 @@ public final class InteractiveUpgradeResolver implements UpgradeResolver {
moduleVersions.put(group.getId() + ":" + module.getName(), moduleVersions.put(group.getId() + ":" + module.getName(),
getLaterVersionsForModule(group.getId(), module.getName(), library.getVersion())); getLaterVersionsForModule(group.getId(), module.getName(), library.getVersion()));
} }
for (String bom : group.getBoms()) {
moduleVersions.put(group.getId() + ":" + bom,
getLaterVersionsForModule(group.getId(), bom, library.getVersion()));
}
for (String plugin : group.getPlugins()) {
moduleVersions.put(group.getId() + ":" + plugin,
getLaterVersionsForModule(group.getId(), plugin, library.getVersion()));
}
} }
List<DependencyVersion> allVersions = moduleVersions.values().stream().flatMap(SortedSet::stream).distinct() List<DependencyVersion> allVersions = moduleVersions.values().stream().flatMap(SortedSet::stream).distinct()
.filter((dependencyVersion) -> isPermitted(dependencyVersion, library.getProhibitedVersions())) .filter((dependencyVersion) -> isPermitted(dependencyVersion, library.getProhibitedVersions()))

Loading…
Cancel
Save