clojure-dev

2023-08-10T16:56:58.709399Z

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?

dpsutton 2023-08-10T16:57:37.349899Z

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

2023-08-10T16:57:38.624749Z

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

dpsutton 2023-08-10T16:57:51.883779Z

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

2023-08-10T16:58:08.992819Z

oh wow, that easy? that's nice

dpsutton 2023-08-10T16:58:18.390539Z

clojure is just another jar on the classpath

dpsutton 2023-08-10T16:58:31.605239Z

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

2023-08-10T16:58:35.148809Z

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

2023-08-10T16:58:50.126569Z

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

dpsutton 2023-08-10T16:59:00.300629Z

https://clojure.org/guides/deps_and_cli#local_jar

dpsutton 2023-08-10T16:59:03.595589Z

๐Ÿ‘

2023-08-10T16:59:14.485659Z

that's sick as hell, thank you

๐Ÿ‘ 1
dpsutton 2023-08-10T16:59:36.391329Z

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