Using the project file
(defproject test "1.0"
  :dependencies [#_ [com.datomic/datomic-free "0.8.3538"]
                 [leiningen-core "2.0.0-preview10"]
                 [com.cemerick/piggieback "0.0.2"]])
  
Then doing a lein2 repl
and running the following commands in order
user=> (require '[cemerick.pomegranate])
nil
user=> (cemerick.pomegranate/add-dependencies :coordinates 
'[[com.datomic/datomic-free "0.8.3538"]])
...lots of output...
user=> (require '[datomic.api])
NoSuchMethodError 
com.google.common.cache.CacheBuilder.maximumSize(J)Lcom/google
/common/cache/CacheBuilder;  datomic.cache/create-computing (cache.clj:129)

If I use lein2 normally with datomic in the project.clj file, everything 
works as normal. Is there something going on differently that prevents this 
from working when adding dependencies dynamically?

(Note I need to have piggieback in there to create the error).

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