Changing subject line for this one. On Mar 28, 2011, at 5:38 PM, Mike Meyer wrote: > > Consider this a features request for cake/leiningen: > 1) A task to search clojars. > 2) A task take a name from #1 and add the appropriate data to project.clj. > 3) Extend the "deps" task to install libraries required by any dependency.
I am not claiming that Leiningen does #1 or #2 already, but in case you were unaware, you can go to clojars.org, type something like "hadoop" in the search box at the upper right, and see a list of matching packages. Clicking on one of them gives me text I can copy and paste into a Leiningen project.clj file, or into a Maven pom.xml file. Here is the text shown for one version of hadoop-core that was shown when I searched for hadoop: [org.apache.hadoop/hadoop-core "0.20.2-dev"] If I add that appropriately to a project.clj file created from making a new "empty except for clojure core project" with "lein new <name>", save it, and type "lein deps", it does do #3, i.e. adds hadoop-core and everything that it requires. They are all put into the lib directory in the project. This is with Leiningen 1.5.0, but that behavior has worked for several versions now. I believe it is implemented under the covers via Maven's dependency management. Have you tried "lein deps" and found that it failed to install libraries required by a dependency you had already added to your project.clj file? Andy -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en