Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Leiningen plugin for executing tasks on sub-projects

branch: master

This branch is 0 commits ahead and 0 commits behind master

Octocat-spinner-32 src Rewrite to support Leiningen 2. February 22, 2012
Octocat-spinner-32 .gitignore Bump version number to 0.2.0-SNAPSHOT. February 22, 2012
Octocat-spinner-32 bump the version to 0.1.2 January 01, 2012
Octocat-spinner-32 project.clj Release 0.2.0. February 22, 2012


Leiningen plugin to execute tasks on sub-projects


Either install as a plugin:

$ lein plugin install lein-sub "0.1.2"

Or, include as a dev-dependency:

:dev-dependencies [lein-sub "0.1.2"]

Your project may have sub-projects (each having its own project.clj file) - you can specify them as follows:

:sub ["module/foo-common" "module/dep-vendor-xyz"]

Execute the plugin as follows:

$ lein sub deps   # runs "lein deps" on each of 'foo-common' and 'dep-vendor-xyz'

$ lein sub jar      # runs "lein jar" on both
$ lein sub install  # install both sub-project artifacts to local Maven repo
$ lein clean; rm -rf lib  # clean current dependency JARs
$ lein deps && lein test  # get deps from remote and local Maven repos and run tests

Getting in touch

On Twitter: @kumarshantanu

On Leiningen mailing list:


Copyright (C) 2011-2012 Shantanu Kumar

Adapted from Phil Hagelberg's example:

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

Something went wrong with that request. Please try again.