leiningen

DerTev 2024-08-11T13:19:13.643449Z

How am I able to override a dependencie of a library so that the library itself uses the newer version of the dependencie for it?

seancorfield 2024-08-11T18:27:24.988179Z

You should be able to add it to your top-level :dependencies vector in project.clj You may need to add :exclusions to the dependency that brings that library in, to be sure.

hifumi123 2024-08-12T20:45:12.382619Z

I've found it easier to use :managed-dependencies than :exclusions when overriding versions of dependencies

seancorfield 2024-08-12T20:53:53.432939Z

(I haven't used Leiningen "in anger" for nearly a decade now so I never figured out managed dependencies... 😄 )

hifumi123 2024-08-12T21:49:27.509289Z

It's a Maven feature and exists even in tools.deps; if you've used :override-deps then you've used managed dependencies before Even in tools.deps I'll use override-deps any day over exclusions

seancorfield 2024-08-12T21:50:05.947939Z

Right, it just never occurred to me that was what it was called 🙂

👍 1
seancorfield 2024-08-12T21:50:30.669459Z

(I use :override-deps a lot for multi-version testing)