clojure 2026-01-15

is it possible to print the merged deps.edn for a given clojure invocation? something like -Sprint-deps? i'm working on a hairy problem and want to figure out exactly what's happening

depending on what you are trying to do with it, the file pointed to by the clojure.basis system property might be a pretty close. it isn't exactly the deps.edn format (may be a superset?). it includes a lot of sort of post dependency resolution data

i just want to inspect it

read it with my eyes

👀 1

if, for example, you want to determine the actual final version of something that ends up on the classpath, something like clj -Spath|grep -Eo '/netty[^:]+' is decent for that

the basis is generally a lot to inspect by eye

https://github.com/clojure/tools.deps.edn exists which seems like it may actually give you exactly a merged deps.edn style map

Alex Miller (Clojure team) 2026-01-15T19:48:01.826339Z

the basis is a superset of deps.edn and does include the merged deps.edn

Alex Miller (Clojure team) 2026-01-15T19:49:20.254789Z

you can also get that via clj -X:deps basis (takes modifiers for other classpath variants if needed, like clj -X:deps basis :aliases '[:foo :bar]' etc)

Alex Miller (Clojure team) 2026-01-15T19:51:36.159289Z

https://clojure.github.io/clojure/#clojure.java.basis is a good reference for the basis

excellent, thank you

I sometimes also inspect the clojure.basis Java property