[SHRINKRES-106] Add deps + scope test.
[SHRINKRES-106] Provide mechanism to resolve "provided", "test", and "optional" transitive dependencies