Use :without-profiles when calculating pom for inclusion in jar. Fixes #537.
This commit is contained in:
parent
4b63f9a953
commit
d85f2fba4d
1 changed files with 8 additions and 5 deletions
|
@ -188,8 +188,11 @@ Create a $PROJECT-$VERSION.jar file containing project's source files as well
|
|||
as .class files if applicable. If project.clj contains a :main key, the -main
|
||||
function in that namespace will be used as the main-class for executable jar."
|
||||
[project]
|
||||
(eval/prep (:without-profiles (meta project) project))
|
||||
(let [jar-file (get-jar-filename project)]
|
||||
(write-jar project jar-file (filespecs project []))
|
||||
(main/info "Created" (str jar-file))
|
||||
jar-file))
|
||||
;; TODO: we should just remove the default profiles, not use :without-profiles
|
||||
;; Fix once #512 lands
|
||||
(let [project (:without-profiles (meta project) project)]
|
||||
(eval/prep project)
|
||||
(let [jar-file (get-jar-filename project)]
|
||||
(write-jar project jar-file (filespecs project []))
|
||||
(main/info "Created" (str jar-file))
|
||||
jar-file)))
|
||||
|
|
Loading…
Reference in a new issue