Skip to content
Newer
Older
100644 49 lines (27 sloc) 2.71 KB
a6f5fe9 @maravillas Initial commmit
authored Aug 2, 2010
1 # lein-multi
2
2161026 @maravillas Add info to readme
authored Aug 4, 2010
3 lein-multi is a Leiningen plugin for running tasks against multiple dependency sets. Most notably, it allows you to test your project against multiple versions of Clojure.
a6f5fe9 @maravillas Initial commmit
authored Aug 2, 2010
4
2605c0c @maravillas Rather belated readme update
authored Nov 1, 2013
5 **NOTE:** This plugin has been superseded by [Leiningen 2.x's profiles](https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md).
6
a6f5fe9 @maravillas Initial commmit
authored Aug 2, 2010
7 ## Usage
8
2161026 @maravillas Add info to readme
authored Aug 4, 2010
9 Syntax:
10
00099dc Update README.md
Matthew Maravillas authored Jun 2, 2011
11 `$ lein multi <task> [--with <set name>] [args]`
2161026 @maravillas Add info to readme
authored Aug 4, 2010
12
13 Specify dependency sets in your project.clj:
14
298c134 @maravillas Change :multi-deps to expect a map with set names as keys
authored Oct 11, 2010
15 :multi-deps {"1.1" [[org.clojure/clojure "1.1.0"]
16 [ring/ring-core "0.2.2"]]
9ea8d75 @maravillas Fix tabs in readme
authored Oct 19, 2010
17 "1.2" [[org.clojure/clojure "1.2.0"]
5dfb0c7 Support an optional default set of dependencies; closes #3
Matthew Maravillas authored Dec 24, 2011
18 [ring/ring-core "0.3.0-beta1"]]
19 :all [[compojure "0.6.4"]]}
2161026 @maravillas Add info to readme
authored Aug 4, 2010
20
21 Download these dependencies with `lein multi deps` (or by running your tests with `lein multi test`). They will be placed in the folder specified by `:multi-library-path` (default: `multi-lib`).
22
5dfb0c7 Support an optional default set of dependencies; closes #3
Matthew Maravillas authored Dec 24, 2011
23 Dependencies included in the :all set will be included with all other sets, including the base set specified in the :dependencies keyword in root of your project.clj.
24
00099dc Update README.md
Matthew Maravillas authored Jun 3, 2011
25 Run a task against a single dependency set from :multi-deps using the `--with` option followed by the set name as specified in your project.clj.
26
2161026 @maravillas Add info to readme
authored Aug 4, 2010
27 lein-multi will accept and run other tasks, though the result may not be what you expect. Tasks that do not require a project (currently `new`, `help`, and `version`) are run as normal.
28
29 Additionally, other tasks may require special handling that isn't yet implemented. For example, `lein multi uberjar` will only create one jar.
a6f5fe9 @maravillas Initial commmit
authored Aug 2, 2010
30
31 ## Installation
32
9df39f8 Bump version and modify install instructions
Matthew Maravillas authored Dec 24, 2011
33 `lein plugin install lein-multi 1.1.0`
2161026 @maravillas Add info to readme
authored Aug 4, 2010
34
35 ## TODO
36
37 * Special handling for pom, jar, uberjar, and clean
38 * Final test summary for all sets
a6f5fe9 @maravillas Initial commmit
authored Aug 2, 2010
39
40 ## License
41
2161026 @maravillas Add info to readme
authored Aug 4, 2010
42 Copyright (c) 2010 Matthew Maravillas
43
44 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
45
46 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
a6f5fe9 @maravillas Initial commmit
authored Aug 2, 2010
47
2161026 @maravillas Add info to readme
authored Aug 4, 2010
48 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.