On Mar 22, 3:00 am, zoka <ztomi...@gmail.com> wrote:
> Thanks very much for the review.
> I am still puzzled how  hiccup and gets pulled  in since ringMon
> dependency list is only:
>             :dependencies [[org.clojure/clojure "1.3.0"]
>                            [ring "1.0.1"]
>                            [org.clojure/java.jmx "0.1"]
>                            [clj-json "0.5.0"]
>                            [org.clojure/tools.nrepl "0.2.0-beta2"]]
> It looks like clj-json might be a culprit.

No, it seems to be rather ring. This is the tree I found:

[INFO] \- ringmon:ringmon:jar:0.1.1:compile
[INFO]    +- ring:ring:jar:1.0.1:compile
[INFO]    |  +- ring:ring-core:jar:1.0.1:compile
[INFO]    |  |  +- commons-codec:commons-codec:jar:1.4:compile
[INFO]    |  |  +- commons-io:commons-io:jar:1.4:compile
[INFO]    |  |  +- commons-fileupload:commons-fileupload:jar:
1.2.1:compile
[INFO]    |  |  \- javax.servlet:servlet-api:jar:2.5:compile
[INFO]    |  +- ring:ring-devel:jar:1.0.1:compile
[INFO]    |  |  +- hiccup:hiccup:jar:0.3.7:compile
[INFO]    |  |  +- clj-stacktrace:clj-stacktrace:jar:0.2.2:compile
[INFO]    |  |  \- ns-tracker:ns-tracker:jar:0.1.1:compile
[INFO]    |  |     \- org.clojure:tools.namespace:jar:0.1.0:compile
[INFO]    |  |        \- org.clojure:java.classpath:jar:0.1.0:compile
[INFO]    |  +- ring:ring-jetty-adapter:jar:1.0.1:compile
[INFO]    |  |  +- org.mortbay.jetty:jetty:jar:6.1.25:compile
[INFO]    |  |  |  \- org.mortbay.jetty:servlet-api:jar:
2.5-20081211:compile
[INFO]    |  |  \- org.mortbay.jetty:jetty-util:jar:6.1.25:compile
[INFO]    |  \- ring:ring-servlet:jar:1.0.1:compile
[INFO]    +- org.clojure:java.jmx:jar:0.1:compile
[INFO]    +- clj-json:clj-json:jar:0.5.0:compile
[INFO]    |  \- org.codehaus.jackson:jackson-core-asl:jar:
1.5.0:compile
[INFO]    \- org.clojure:tools.nrepl:jar:0.2.0-beta2:compile

You can perhaps choose only selected dependencies, such as "ring-
core", "ring-jetty-adapter" etc instead of "ring" that pulls in
everything. Technically, in order to write a ring middleware you need
not include anything from ring as it is only the SPEC it follows. You
can leave the responsibility of starting the jetty server to the user.

If you use Clojure data structures to communicate between the server
and client (using ClojureScript) then you can get rid of clj-json.

> Is there a lein/maven utility that works out dependency chain?

$ lein pom
$ mvn dependency:tree

as described here:
http://lousycoder.com/index.php?url=archives/184-Quick-tip-for-showing-transitive-dependencies-with-Leiningen.html&serendipity%5Bcview%5D=linear

Shantanu

-- 
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

Reply via email to