1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
-*-text-*-
tools.build, like Leiningen or Maven, copies relevant dependencies
into ~/.m2. By default, it downloads them from Clojars
(https://clojars.org) and MVN Repository (https://mvnrepository.com).
That can be changed in a deps.edn. For example, you can redirect
tools.build to the local Debian repository like this:
{...
:mvn/repos
{"debian" {:url "file:///usr/share/maven-repo"}
"clojars" nil
"central" nil}
...
And you can change the artifact destination from ~/.m2 like this:
...
:mvn/local-repo "/some/where"
...
And finally, the deps.edn must be provided to the relevant tools.build
calls. For example:
(tools.build.api/create-basis {:project "deps.edn"}))
See the tools.build Guide (https://clojure.org/guides/tools_build)
for more general information.
|