This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-11
Channels
- # aws (3)
- # babashka (67)
- # beginners (284)
- # calva (19)
- # cider (12)
- # cljdoc (9)
- # clojure (111)
- # clojure-austin (4)
- # clojure-europe (34)
- # clojure-france (12)
- # clojure-greece (2)
- # clojure-nl (14)
- # clojure-taiwan (2)
- # clojure-uk (11)
- # clojurescript (34)
- # community-development (2)
- # conjure (8)
- # datomic (15)
- # events (3)
- # fulcro (12)
- # jobs (3)
- # leiningen (4)
- # malli (3)
- # meander (11)
- # mount (2)
- # off-topic (29)
- # pathom (11)
- # re-frame (31)
- # reagent (19)
- # remote-jobs (3)
- # reveal (8)
- # rewrite-clj (1)
- # sci (1)
- # shadow-cljs (8)
- # spacemacs (4)
- # sql (1)
- # startup-in-a-month (2)
- # tools-deps (2)
- # vim (7)
- # xtdb (6)
I have a leiningen project with continuous integration. I want to have full control over the dependencies used by the project, by setting up my own (most likely s3-based) maven file system structure based on one initial lein deps
. Can I use leiningen deploy
or some other leiningen command to install all the dependencies of the project into this private repo?
If not, how do I solve it?
https://github.com/technomancy/leiningen/blob/stable/sample.project.clj#L145 :local-repo For where local install and maven cached artifacts go https://github.com/technomancy/leiningen/blob/stable/sample.project.clj#L104 :repositories for fetch and deploy remotes. There are some finger grained repository keys for more control also in this sample @oscarlinusericsson
Are you suggesting that i make a lein deps to a local m2 folder and then upload it as a whole to, say, an s3-bucket? I was thinking there would be some batch operation like lein deps
and then lein install-all-deps-into-a-certain-private-repo
, but if not, uploading the resulting folder would certainly work, albeit with some extra work when upgrading dependencies.
I guess the most common way of solving this is to use a maven mirror that works a proxy. Thanks!
lein treats the cache as a cache, and doesn't have commands for manipulating it (other than downloading new items that aren't yet present, or installing from a local artifact into the cache)