Recommend to use libdir plugin:  https://github.com/djpowell/lein-libdir
Run lein libdir to copy all the dependencies to lib directory, and  just
run lein jar to package the project.
Then you can rsync or copy the project jar with all dependent jars instead
of compiling all dependent namespaces that is really slow.


2015-10-28 7:44 GMT+08:00 Matching Socks <phill.w...@gmail.com>:

> If you do not want much to be compiled ahead-of-time and represented in
> the jar as class files, you may use the :impl-ns option on :gen-class.
>
> e.g.,
>
> 1) project.clj says
> :aot [bla.bla-aot]
>
> 2) bla.bla_aot.clj says
> (ns bla.bla-aot (:gen-class :impl-ns bla.bla))
>
> Ahead-of-time compilation does not follow the impl-ns reference.
>
> 3) bla.bla.clj has functions that Java may call as though they were in the
> bla.bla_aot class: for example, a -main function, which Java may call as
> bla.bla_aot.main.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
庄晓丹
Email:        killme2...@gmail.com xzhu...@avos.com
Site:           http://fnil.net
Twitter:      @killme2008

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to