How to add a local library to a Leinigen project?

I would like to add a local library of utilities that I wrote in my project in Leinigen, without the need to create library banks or without copying the code.

Is it possible?

+4
source share
2 answers

You can use the checkouts function for leiningen to add a symbolic link to the project directory containing the library.

cd project-dir # where the project.clj file is
mkdir checkouts
ln -s ~/library/project/dir/ checkouts/library-name

Then add the dependency to the project.clj file

EDIT: , , git , , . lein install maven, . ps: , - clojure.

+5

monorepo, . monorepo, Leiningen Amperity lein-monolith

, Monorepo Clojure

0

All Articles