Collect licenses for full dependency tree.