lein-git-deps icon indicating copy to clipboard operation
lein-git-deps copied to clipboard

How to require installed package?

Open sandric opened this issue 10 years ago • 2 comments

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 avatar Jun 13 '14 17:06 sandric