Package a Leiningen project into a self contained tar file, containing all the project's dependencies.
Requires leiningen version 2.
$ lein dist
Creates myproject-version.tar
in the target
directory.
Add [lein-dist "0.1.1"]
to the :plugins
vector of your :user
profile, or your project.clj
.
The plugin will create a version of the project that uses a project-local maven
repo using :local-repo "local-m2"
, resolves all the dependencies into that
repository and then sets :offline? true
.
The plugin also packages a version of lein
, that uses ./.lein
as it's
configuration directory (LEIN_HOME
).
Copyright © 2012, 2013 Hugo Duncan.
Distributed under the Eclipse Public License.