Returns whether this dependency should be resolved including or excluding its transitive dependencies.