-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for lein 2.7's :managed-dependencies
#454
Conversation
@@ -71,13 +72,18 @@ | |||
(map (fn [[k v]] (vec (cons k v))))))) | |||
|
|||
(defn make-subproject [project crossover-path builds] | |||
(with-meta | |||
(merge | |||
(let [deps (classpath/merge-versions-from-managed-coords |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check if this var exists before calling it? If it does then use it, if not then fall back to the old behaviour?
efc60a2
to
2f55f15
Compare
@danielcompton sure, I've updated the PR based on your suggestion. I'm still in the process of verifying these changes against a local clojurescript project that uses |
@cprice404 This looks good so far, would be happy to merge this 👍 Let me know when you think it's ready. |
Thanks! I got sidetracked today so didn't finish my testing, hope to finish it tomorrow. |
OK, done testing, confirmed that these changes work fine with my project, which uses |
@cprice404 I tested your patch with
I get the exception because it's still trying to compile the |
Well, darn. I could write a macro or I change the |
I don't have a preference, I think both approaches are ok. If you prefer the |
cool, working on it now. and testing with lein 2.6 this time :) |
2f55f15
to
9e639dc
Compare
pushed up that change. |
@mneise does this approach look OK? |
Thank you for this 👍 |
In lein 2.7.0, a new feature was added that allows you to specify dependency versions in a new
:managed-dependencies
vector, so that you can, e.g., inherit dependency versions from a parent project (via the lein-parent plugin, etc.).For more info see the Managed Dependencies docs in the lein repo.
The current release of lein-cljsbuild won't work with projects that use this, because the version checks at startup assume that they will be able to find the dependency version numbers directly in the
:dependencies
vector.This commit adds support for getting the dependency versions via the new mechanism. It should be 100% backward compatible but it does introduce a min-lein-version of 2.7.
Opening this to solicit feedback. If there's another way to structure this in order to deal with the min-lein-version issue, let me know and I'll be happy to re-work it.