Here's how it's done:
- Add the following line to ~/.lein/profiles: [lein-git-deps "0.0.1-SNAPSHOT"] under :user :plugins, like so:
- Form the command line run: lein deps
- In your projects project.clj file add the following:
where :git-dependencies is the github url of the repo you wish to use and :java-source-paths is the path where Leiningen will find the source code to build (note: it will be downloaded from github into a directory .lein-git-deps/ by default
- From the command like run: lein git-deps
- Add an import statement to your clojure files:
No comments:
Post a Comment