Hi Asim

You can add the lein-exec plugin to the :plugins section in your
project.clj, people who don't have it in their m2 will download it like any
other dependency.

Your use case may be better handled by building an Uberjar. What you're
describing is one of the primary use cases for using JARs, and you may find
it easier to handle in the long run. However I understand that there is a
bit more overhead going this route.

On Sat, Oct 31, 2015 at 7:09 AM Asim Jalis <asimja...@gmail.com> wrote:

> I have been using lein-exec a lot for writing quick Clojure scripts. I
> like it because:
>
> - It lets me use deps to pull in dependencies from the REPL.
> - It makes it easy to get started without creating a lot of stuff.
>
> The problem I am running into is this.
>
> I want to share these scripts with people who are not Clojure programmers
> and don't have lein or lein-exec installed on their machines. I can
> automate installing lein using wget.
>
> But there is no similar automated way to install lein-exec. Currently I
> have to tell people to manually add lein-exec to their .lein/profiles.clj.
>
> Is there a way to automate this?
>
> Thanks.
>
> Asim
>
> --
> 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.
>
-- 
Daniel

-- 
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