Merge dependencies and their versions