clojure-dev 2023-08-10

I'm not familiar with maven much, so if I wanted to use clojure's latest commit in my project, I'd use mvn -Plocal -Dmaven.test.skip=true package, right? and then how would I reference it in my deps.edn file?

if you have a local jar somewhere just as you would use any other jar

"why do you want to do this?" i'm toying with running clojure nightly against a bunch of different libraries to see what breaks

org.clojure/clojure {:local/root "path-to-clojure.jar"}

oh wow, that easy? that's nice

clojure is just another jar on the classpath

the clojure cli will give you a default or use whatever you specify

i thought :local/root looked for a pom or deps.edn file

jk if i read directly below, it says it looks for jars too

that's sick as hell, thank you

๐Ÿ‘ 1

i think itโ€™s whatever deps.edn kinda understands. other deps.edn projects, a folder with a pom, or a jar (which is basically a zip file with a pom)

๐Ÿ‘ 1
Alex Miller (Clojure team) 2023-08-10T17:22:03.145819Z

Not sure if this is obvious now but you shouldnโ€™t need the -Plocal jar build, just the Clojure jar from the normal mvn package contains a pom that depends on spec etc, and the CLI should pull that out of the jar

๐Ÿ‘ 1