add project files to the uberjar first, then dependencies

since duplicates are skipped, add the project files to the uberjar
first, so that they always win the war of the duplicates.  for
instance, MANIFEST.MF from clojure would previously have been added
before MANIFEST.MF from the project's jar, making :main not work.
This commit is contained in:
Joe Gallo 2011-03-10 10:12:59 -05:00
parent 96ff4eee9e
commit 90aad00732

View file

@ -77,7 +77,7 @@ the dependency jars. Suitable for standalone distribution."
(ZipOutputStream.))]
(let [deps (->> (.listFiles (file (:library-path project)))
(filter #(.endsWith (.getName %) ".jar")))
jars (conj (vec deps) (file (get-jar-filename project)))]
jars (cons (file (get-jar-filename project)) deps)]
(write-components project jars out)))
(println "Created" standalone-filename))
(abort "Uberjar aborting because jar/compilation failed.")))