I have a common dependency with different versions in different branches.
For example, its version name is dev-0.01 in the dev branch, uat-0.01 in the uat branch, prd-0.01 in the prd branch.
The reason is the new feature will be only in the dev first, then to uat, finally to prod.