Remove hacky jar multimethod.
This commit is contained in:
parent
7137730e90
commit
d7287cf928
1 changed files with 3 additions and 6 deletions
|
@ -129,9 +129,6 @@
|
|||
(.putNextEntry jar-os (JarEntry. (:path spec)))
|
||||
(copy (ByteArrayInputStream. (:bytes spec)) jar-os))
|
||||
|
||||
;; TODO: hacky; needed for conditional :resources-path below
|
||||
(defmethod copy-to-jar nil [project jar-os spec])
|
||||
|
||||
(defn write-jar [project out-filename filespecs]
|
||||
(let [manifest (make-manifest project)]
|
||||
(with-open [jar-os (-> out-filename
|
||||
|
@ -168,11 +165,11 @@
|
|||
(:group project)
|
||||
(:name project))
|
||||
:bytes (make-pom-properties project)}
|
||||
(when (and (:resources-path project)
|
||||
(.exists (file (:resources-path project))))
|
||||
{:type :path :path (:resources-path project)})
|
||||
{:type :path :path (:compile-path project)}
|
||||
{:type :path :path (str (:root project) "/project.clj")}]
|
||||
(when (and (:resources-path project)
|
||||
(.exists (file (:resources-path project))))
|
||||
[{:type :path :path (:resources-path project)}])
|
||||
(when-not (:omit-source project)
|
||||
[{:type :path :path (:source-path project)}])
|
||||
(shell-wrapper-filespecs project deps-fileset)))
|
||||
|
|
Loading…
Reference in a new issue