jcrossley3 / lein-modules

An alternative to Maven multi-module projects in Leiningen
Eclipse Public License 1.0
83 stars 16 forks source link

Enable :version to refer to sub-modules version and not the version of the currently building project #29

Open alexdforeman opened 9 years ago

alexdforeman commented 9 years ago

Currently :version in dependency versioning refers to the current sub-module's version, which is fine when all submodules are in sync with each other.

In a world where subprojects have differnt versions however this breaks.

It would be really nice that if lein-modules sees a :version it tries to find that project in its source tree and substitutes that version in and then if it cant find it then falls back to the modules version by default.

This should be 100% compatible with what is happening currently, however it would also enable clever version tracking of submodule dependencies which are not all the same.

jcrossley3 commented 9 years ago

Good idea, thanks! I'll try to look into this soon.

jcrossley3 commented 9 years ago

Alex, you can install that #29 branch locally just to see if it addresses your needs, but I'm hesitant to release it as it impacts performance quite a bit.

alexdforeman commented 9 years ago

Thanks Jim, Ill either test it today or first thing tomorrow and get back to you ASAP

alexdforeman commented 9 years ago

Jim, I now have the stack working fine using this SNAPSHOT. Could this version be released and pushed to clojars.

Many thanks, its really appreciated.

henryw374 commented 9 years ago

Hi - I am also using this snapshot version to solve the same issue.

cheers