Given that the main ns is specific to the project, I wonder if it would be better to have:
(def main-ns 'my.lib.main)
at the top (after lib
, say) and then use that var in the call to uber
?
(b/uber {:class-dir class-dir
:uber-file uber-file
:basis basis
:main main-ns})
Then it might be worth showing an alternative call to compile-clj
that just compiles that main ns instead of implicitly compiling "all" -- and show that :src-dirs
can be []
when :ns-compile [main-ns]
is provided?