File: README.Debian

package info (click to toggle)
tools-build-clojure 0.10.6%2Bds-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 792 kB
  • sloc: xml: 113; javascript: 90; sh: 34; java: 12; makefile: 8
file content (29 lines) | stat: -rw-r--r-- 823 bytes parent folder | download
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.