From 90aad007329e2fe8636e38e262b7704c88e83b34 Mon Sep 17 00:00:00 2001 From: Joe Gallo Date: Thu, 10 Mar 2011 10:12:59 -0500 Subject: [PATCH] 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. --- src/leiningen/uberjar.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leiningen/uberjar.clj b/src/leiningen/uberjar.clj index e9bb2a01..531b696a 100644 --- a/src/leiningen/uberjar.clj +++ b/src/leiningen/uberjar.clj @@ -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.")))