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:
parent
96ff4eee9e
commit
90aad00732
1 changed files with 1 additions and 1 deletions
|
@ -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.")))
|
||||
|
|
Loading…
Reference in a new issue