Fork me on GitHub
#tools-deps
<
2018-11-11
>
jwhitlark07:11:21

I was playing around with https://clojure.org/reference/compilation#_gen_class_examples and I've noticed that with 1.10.0-beta5, I couldn't compile the example code until I'd created a classes directory. Is that expected behavior?

dominicm08:11:48

It is normal behaviour from my past testing on this. The output directory is supposed to already be in the classpath.

orestis08:11:03

Does tools-deps have a story for compiling Java code that lives in the same repo?

danie12:11:38

Joined to ask this exact question. I have one measly .java file that I want to (:import), and i really don't want to make a jar just for that one file.

orestis08:11:20

(No immediate use case, just curious)

jwhitlark09:11:08

I'm curious about that too.

dominicm09:11:33

Not at all @orestis.

dominicm09:11:24

I've done some work on this, but it would be the same level as clojure.core/compile I suspect. Riddler is a good option to look at I think

danie12:11:33

what is Riddler, where can I find it?

dominicm13:11:54

Apparently I got mixed up, I meant this: https://github.com/ztellman/virgil

dottedmag13:11:33

tools.deps is about building classpath, clj is about running Clojure. You can run javac from one of clj aliases if that's a single .java file.

jwhitlark23:11:16

Wow, digging through virgil's code answers a lot of questions.