Add support for resolved versions in dependency constraints This commit adds handling of resolved versions in dependency constraints. By default, the version used during publishing is untouched if the constraint is just declared and doesn't participate in dependency resolution. If the constraint applies, then we use the resolved version.