LPS-34246 Make sure we upgrade dependencies first and log error if two or more depend on each other