mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Ignore Spring Boot when finding dependency upgrades
Closes gh-27447
This commit is contained in:
parent
5d9da7206e
commit
ea6cb74ccf
@ -69,8 +69,9 @@ public final class InteractiveUpgradeResolver implements UpgradeResolver {
|
|||||||
for (Library library : libraries) {
|
for (Library library : libraries) {
|
||||||
librariesByName.put(library.getName(), library);
|
librariesByName.put(library.getName(), library);
|
||||||
}
|
}
|
||||||
return libraries.stream().map((library) -> resolveUpgrade(library, librariesByName))
|
return libraries.stream().filter((library) -> !library.getName().equals("Spring Boot"))
|
||||||
.filter((upgrade) -> upgrade != null).collect(Collectors.toList());
|
.map((library) -> resolveUpgrade(library, librariesByName)).filter((upgrade) -> upgrade != null)
|
||||||
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
private Upgrade resolveUpgrade(Library library, Map<String, Library> libraries) {
|
private Upgrade resolveUpgrade(Library library, Map<String, Library> libraries) {
|
||||||
|
Loading…
Reference in New Issue
Block a user