Fork me on GitHub
#tools-deps
<
2018-10-05
>
mpenet10:10:54

I guess classpath-overrides is a possibility but that's a bit gross

genekim15:10:17

Got it — thanks for the insights on lein compiles vs. clj, @alexmiller @mpenet !

adamfrey17:10:09

If I'm making a library with tools.deps and it includes a Java file in it, how can I have that library be consumable in a way that allows people to import the java class? I know it the .java file needs to get compiled into a .class file at some point, which makes sense in an uberjar, but what about pulling in my library via git or :local/root? Would it work / is it advisiable to put the .class file into version control?

Alex Miller (Clojure team)18:10:06

You can’t - you should use a build tool to create and deploy an artifact

nwjsmith20:10:37

I’ve been playing around with tools.deps using Maven as a build tool, and it’s been a good experience. clj -Spom -Srepro does mess with my pom.xml in undesirable ways, but testing is straightforward with the clojure-maven-plugin, and building uberjars with maven-shade-plugin works great. The most pleasant thing for me has been the speed relative to Leiningen, it’s much faster.

nwjsmith20:10:15

I’m not sure why I haven’t seen this set up more often in the wild

nwjsmith20:10:25

Fear of XML maybe?

✔️ 4