I'm trying out depstar to make a build with aot, and I'm having issues where classes from clojure.specs.alpha are being included in the thin jar.
Is there something I can do to fix that?
I've tried the :exclude key and it doesn't seem to be working.
@suskeyhose As it says in the README: it is not recommended to AOT code for a thin (library) JAR.
Only uberjars should be AOT’d.
Unfortunately it's a requirement for my library because I have to gen-class something that extends Throwable.
Or is there something else I can do to allow users to use the library without pre-compiling?
@suskeyhose AOT is transitive, so you get class files for everything that namespace depends on.
You could compile
manually and then put only the .class
files you need into the classpath.
Thanks. It looks like I missed the fact that the regex from the :exclude needs to match the whole filename.
Ah, OK. So, yeah, you can add lots of :exclude
regexes 🙂
Yeah, I was able to just add one regex to match all the clojure/core/specs/alpha class files