tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
golanweiss 2021-04-11T10:52:22.428600Z

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.

borkdude 2021-04-11T10:54:46.429400Z

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

golanweiss 2021-04-11T11:08:40.430Z

Do you mean without compiling it before running?

borkdude 2021-04-11T11:10:17.430200Z

Sorry, I meant javac

golanweiss 2021-04-11T11:34:42.430500Z

indeed this works.

golanweiss 2021-04-11T11:34:43.430700Z

thanks!