Run a leiningen project without checking it out or downloading a jar
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/leiningen
README.md
project.clj

README.md

lein-runproject

A Leiningen plugin for running a leiningen project without having to check it out from source, or download a binary. It will include all dependencies (downloading them if necessary) and run the project's :main namespace. Based partly on lein-try plugin.

Usage

Leiningen (via Clojars)

Put the following into the :plugins vector of the :user profile in your ~/.lein/profiles.clj:

[lein-runproject "LATEST"] 
Example
{:user {:plugins [[lein-runproject "LATEST"]]}}

Command Line

You can use lein-runproject run any project, any version that exists in your profile's repositories.

$ lein runproject fooproj 0.5.1 arg1 arg2 ...
Fetching dependencies... (takes a while the first time)

[Program output]

# or if you don't care what version
$ lein runproject fooproj LATEST arg1 arg2 ...
Fetching dependencies... (takes a while the first time)

[Program output]

To see available options, call lein help runproject.

License

Copyright © 2013 Jeff Weiss

Distributed under the Eclipse Public License, the same as Clojure.