This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-16
Channels
- # announcements (62)
- # babashka (12)
- # babashka-sci-dev (73)
- # beginners (16)
- # biff (10)
- # calva (65)
- # cider (13)
- # clerk (8)
- # clojure (31)
- # clojure-europe (16)
- # clojure-nl (1)
- # clojure-norway (19)
- # clojure-spec (24)
- # clojure-uk (5)
- # clojuredesign-podcast (18)
- # clojurescript (18)
- # dev-tooling (2)
- # emacs (30)
- # etaoin (4)
- # gratitude (3)
- # hyperfiddle (20)
- # integrant (2)
- # jobs (4)
- # kaocha (7)
- # malli (1)
- # observability (11)
- # off-topic (11)
- # pathom (12)
- # podcasts-discuss (7)
- # portal (12)
- # quil (3)
- # re-frame (6)
- # releases (1)
- # sql (22)
- # squint (5)
- # testing (79)
- # tools-deps (3)
- # xtdb (20)
Hi all, I saw that when downloading dependencies the repositories are tried in order, from src/main/clojure/clojure/tools/deps/alpha/util/maven.clj
(defn remote-repos
[{:strs [central clojars] :as repos}]
;; always return central, then clojars, then other repos
(->> (concat [["central" central] ["clojars" clojars]] (dissoc repos "central" "clojars"))
(remove (fn [[_name config]] (nil? config)))
(mapv remote-repo)))
There are some libraries though which use a different id for maven central and then the ordering is not applied (`maven-central` instead of central
). One of these libraries is https://github.com/googleapis/google-cloud-java/blob/main/google-cloud-pom-parent/pom.xml.
Is this something that has changed or is it just a loose convention to use central
as id? And do you think it's a good idea to include maven-central
in this ordering?central and clojars are built in to the root deps.edn and so are "special"