guymahieu / ivyidea

Resolve dependencies for your Intellij projects using Ivy
Apache License 2.0
13 stars 18 forks source link

Option to disable resolving local modules as dependencies? #158

Closed laurenkt closed 4 years ago

laurenkt commented 6 years ago

I realize this is a feature but it would be useful to turn this off as it's not always desired behavior: when a local module exists that matches the dependency, the plug-in favors using the module as a dependency.

However you may wish to develop one module against a particular version of a dependency, rather than the one you may have checked out locally.

I believe this is where this decision is made:

https://github.com/guymahieu/ivyidea/blob/0dad4f3732c9bcd513a1ecc5e2f8144648c35d2c/src/main/java/org/clarent/ivyidea/resolve/IntellijModuleDependencies.java#L63

Would you accept a PR to add an option for this - or a better idea of how to handle both use cases?

ghost commented 5 years ago

We also would like to have the ability to turn this feature off since we have several dependent projects and it's easier to keep them opened together in one project window, but we want to resolve them independently and keep their contexts separately.