Fork me on GitHub
#tools-deps
<
2018-11-23
>
prepor12:11:16

Hello. I want to suggest another way how to build uberjars with tools.deps. boot-tools-deps amends boot's configurations. Our approach doesn't complement uber task but replaces it. https://gist.github.com/prepor/ad40e061287793660c9faff21de23b82 This task simply adds classpaths (and paths) from tools.deps to fileset. And it works with git and local dependencies too. The final task could look like this:

(deftask build
  []
  (comp (deps-uber)
        (aot :namespace '[app.core])
        (jar :file "standalone.jar"
             :main 'app.core)
        (sift :include #{#"standalone.jar"})
        (target)))

dominicm19:11:40

@alexmiller https://dev.clojure.org/jira/browse/TDEPS-17 has become a priority for me. I can't use our git fork because it's coming in transitively. I'd like to work on it this weekend, any thoughts you've formed so far? I'm thinking that the simplest version is that something like this will work:

org.clojure/tools.namespace {:mvn/version "1.0.0" :lib pro.juxt/tools.namespace}
Version is first priority. 2 with equal versions and different libs throws an error like comparing git to mvn does.