The problem will then be that the next time I checkout clojure-contrib, BLAM I can't compile it because I need to download a jar from somewhere on the web ...
But in the other end, this seems inevitable for the parts that will really *need* those libs. Maybe it's time to make clojure-contrib more modular. It will be very difficult to speak about it without the discussion switching to a dependency management tool war .... OR to keep things simple, add the dependencies (if their license allow it *OUCH*) in some libs/ directory in clojure-contrib itself. I guess Meikel Brandmeyer somewhat started to show the path by already offering a split of clojure-contrib in several more modular units. AGAIN, I would be very unhappy to have to download even one or two jars from the web in order to be able to compile clojure-contrib if I just want to use a namespace of it that has nothing to do with the downloaded jar, either directly or indirectly ... 2009/4/14 Stuart Sierra <the.stuart.sie...@gmail.com> > > On Apr 14, 8:19 am, Rich Hickey <richhic...@gmail.com> wrote: > > I've been thinking recently about contribs with dependencies. > ... > > I'd like to start a discussion about how best to support the > > contributions of libraries that depend on things not in the JDK. > > I'm ok with contribs depending on non-JDK libs, as long as they're > clearly labeled. > > How about a flag on the ns declaration? If the ns can't find a Java > class that it needs to import, it displays an error with the name of > the library and where to download it. Something vaguely like: > > (ns clojure.contrib.foo > (:import (org.foo.lib FooFactory) > (:needs (org.foo.lib :name "FooLib", :url "http://foo.com/ > lib", :version "1.2"))) > > I'm NOT proposing a dependency management system to download and > install the JAR files. That way lies madness. > > -Stuart Sierra > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---