lein-git-deps
lein-git-deps copied to clipboard
How to require installed package?
What should be the package name while requiring git dependency in code? For example here is my code of project.clj:
:plugins [[lein-git-deps "0.0.1-SNAPSHOT"]]
:git-dependencies [["https://github.com/clj-jgit/clj-jgit.git"]]
:dependencies [[org.clojure/clojure "1.5.1"]])
in project directory, after running lein git-deps command, I getting new dir /.lein-git-deps/clj-jgit, but how can I now require it in code? For example, I can require this lib by including it normally in dependecies array in project.clj like so:
(:require [clj-jgit.internal]
[clj-jgit.porcelain]
[clj-jgit.querying])
But including it in git-dependencies array giving me an error. Am I doing smth wrong? Also, while installing this lib, it requires some extra libs for itself, but while running lein git-deps command it creates only dir with lib, without what it depends on.
@sandric I'm 2 years late but I've got this working with:
:git-dependencies [["https://github.com/iamjarvo/tentacles.git" "upgrade-cljhttp"]]
:source-paths [".lein-git-deps/tentacles/src" "src/clj" "src/cljc"]
in my project.clj
@tobyhede are you still alive btw? :smiley: