On Nov 18, 8:29 am, Phil Hagelberg <p...@hagelb.org> wrote:
> I'm pleased to announce the initial release of Leiningen.
>
> Leiningen is a build tool for Clojure designed to not set your hair on fire.

I really like it so far - particularly the combination of lein and
clojars!

I'm not sure if this is the place for questions and/or bug-reports,
perhaps lein should have its own group?

Anyway, here is my situation. I have a project I want to push to
clojars using lein. The project depends on the newest version of
clojure in the new branch  - i.e. commit
75cd05080f7260c54007d7728fb280ae53b56f63 in 
http://github.com/richhickey/clojure/tree/new

I created a clojar in my group:
[org.clojars.krukow/clojure-1.1.0-alpha-snapshot
"75cd05080f7260c54007d7728fb280ae53b56f63"]

and for my project which depends on this jar i created a project.clj:

(defproject org.clojars.krukow/circuit-breaker "0.1"
    :dependencies [[org.clojars.krukow/clojure-1.1.0-alpha-snapshot
 
"75cd05080f7260c54007d7728fb280ae53b56f63"]])

I ran deps:
krukow:~/Projects/clojure/circuitbreaker$ lein deps
     [copy] Copying 1 file to /Users/krukow/Projects/clojure/
circuitbreaker/lib
krukow:~/Projects/clojure/circuitbreaker$ ls lib/
clojure-1.1.0-alpha-
snapshot-75cd05080f7260c54007d7728fb280ae53b56f63.jar
krukow:~/Projects/clojure/circuitbreaker$

But now all lein commands fail. E.g,

krukow:~/Projects/clojure/circuitbreaker$ lein help
Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at clojure.lang.RT.loadClassForName(RT.java:1516)
        at clojure.lang.RT.load(RT.java:389)
        at clojure.lang.RT.load(RT.java:371)
...

I suspect it is because I've put another version of clojure on the
classpath.

Any advice on how to do projects that depend on specific versions of
clojure?

/Karl

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