Fork me on GitHub
#tools-deps
<
2021-04-11
>
golanweiss10:04:22

Hi, lein has a flag java-source-paths to compile Java files in a clojure project - see https://github.com/technomancy/leiningen/blob/master/src/leiningen/javac.clj#L137. Is there an equivalent way of doing this in CLI + tools.deps ? Should I use badigeon as in https://github.com/EwenG/badigeon/blob/master/sample/badigeon/sample.clj#L37? thanks.

borkdude10:04:46

you can also just use java and set the classpath with $(clojure -Spath ...) if it's only a few classes EDIT: I meant javac

golanweiss11:04:40

Do you mean without compiling it before running?

borkdude11:04:17

Sorry, I meant javac

golanweiss11:04:42

indeed this works.