pelle / cloth

Simple Ethereum library for Clojure(Script)
142 stars 20 forks source link

leveldbjni-all error when including cloth #9

Open adamwielowieyski opened 8 years ago

adamwielowieyski commented 8 years ago

Hi, an interesting error when including cloth 0.3.1 in my boot.jar:

java.util.concurrent.ExecutionException: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact org.ethereum:leveldbjni-all:jar:1.18 in clojars (https://clojars.org/repo/) org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact org.ethereum:leveldbjni-all:jar:1.18 in clojars (https://clojars.org/repo/)

I suspect this is something to do with dependencies set up in ethereumj; a related comment in the ethereumj issues now suggests upgrading to release 1.3.0.

https://github.com/ethereum/ethereumj/issues/344

Any suggestions as to other possible fixes?

Thanks!

pelle commented 8 years ago

I'm probably going to remove the ethereumj dependency in the next version. But try to make sure you have the ethereumj repo added. Not sure how to do that in boot

In leiningen you would add this key to project.clj:

:repositories [["oss.jfrog.org" "http://dl.bintray.com/ethereum/maven"]]

I need to update the docs. If you figure out how to do it with boot would you do me a favor and create a PR for the README or even just add it as a comment here and I'll update it

adamwielowieyski commented 8 years ago

Briliant, thank you. So this works:

(set-env! :repositories #(conj % ["oss.jfrog.org" "http://dl.bintray.com/ethereum/maven"]))

added to build.boot. I can add this to the README a little later once back at my desktop.