Don’t apply dependency management to project dependencies

Previously, transitive dependencies on another project in the same build
were having dependency management applied to them, leading to mismatched
versions being used.

This commit updates the plugin so that dependency management is never
applied to a dependency, direct or transitive, on another project in the
build.

Fixes #9