tools-deps

cch1 2023-03-18T14:49:18.977629Z

I’ve recently started consuming an old XML lib that ceased development on a SNAPSHOT version ten years ago. I also have a :mvn/repos entry for datomic-cloud. Now when Clojure CLI processes my deps.edn the delay and noise from checking for updated SNAPSHOTs from datomic-cloud is substantial (interestingly, I don’t see that noise from another custom repo I have configured). Is there any way in deps.edn to reduce the frequency of checking for SNAPSHOT updates? They’re not checked every time clojure runs, but statistically much too often in my case. If it’s not possible in deps.edn, can maven be configured to adjust the frequency? I’ve tried hacking around in ~/.m2/settings.xml using https://maven.apache.org/ref/3.9.1/maven-settings/settings.html#settings as a guide, but it seems to be ignoring all my attempts.

cch1 2023-03-24T15:55:57.712879Z

@alexmiller Unfortunately I have many transitive SNAPSHOT dependencies (due to the otherwise excellent io.xapix/paos lib). I essentially set the value of my :mvn/repos to:

{"datomic-cloud" {:url ""
                              :snapshots {:enabled false}}}
and the impact to the noise and delay on executing clojure and clj was dramatic. Feedback = ❤️ .

Alex Miller (Clojure team) 2023-03-18T15:24:07.950629Z

with recent releases you can set the update frequency in the :mvn/repos key

Alex Miller (Clojure team) 2023-03-18T15:26:07.584879Z

{:mvn/repos
 {"datomic-cloud" {:url "whatever"
                 :snapshots {:enabled false}
                 :releases {:enabled true
                            :update :daily}}}}
^^ really just disabling snapshots should help the most

Alex Miller (Clojure team) 2023-03-18T15:26:47.633109Z

https://clojure.org/reference/deps_and_cli#_maven for more docs

cch1 2023-03-18T18:27:13.767099Z

Awesome. Thanks, @alexmiller.

Alex Miller (Clojure team) 2023-03-18T19:37:31.817749Z

Not many people have used this yet, so interested in feedback