9f37f53c5e
This is accomplished with the :reduce metadata, which specifies the reduce function to use when merging. This allows us to merge dependencies and repositories deeply like other structures. Note that dependencies are transformed into a map before they are merged and then transformed back into a vector. Also change the way that collections are merged. They used to be merged by taking the right collection and prepending it to the left collection. This behavior was needed for :*-paths in defproject, but it is not an obvious default. Now, the default is to append the right collection, but the :prepend metadata can be used to tell meta-merge to prepend instead. By default, :source-paths, :resource-paths and :test-paths have :prepend set to true.
17 lines
791 B
Clojure
17 lines
791 B
Clojure
(defproject leiningen-core "2.0.0-SNAPSHOT"
|
|
:url "https://github.com/technomancy/leiningen"
|
|
:license {:name "Eclipse Public License"
|
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
|
:description "Library for core functionality of Leiningen."
|
|
:dependencies [[org.clojure/clojure "1.4.0"]
|
|
[bultitude "0.1.7"]
|
|
[classlojure "0.6.6"]
|
|
[useful "0.8.6"]
|
|
[robert/hooke "1.1.2"]
|
|
[com.cemerick/pomegranate "0.0.13"
|
|
:exclusions [org.slf4j/slf4j-api]]]
|
|
;; This is only used when releasing Leiningen. Can't put it in a
|
|
;; profile since it must be installed using lein1
|
|
;;:aot :all
|
|
:dev-resources-path "dev-resources"
|
|
:profiles {:dev {:resource-paths ["dev-resources"]}})
|