forked from puppetlabs/puppetdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
131 lines (111 loc) · 5.99 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
(require '[clojure.string :as s])
(use '[clojure.java.shell :only (sh)]
'[clojure.java.io :only (file)])
(def pdb-version "3.0.0-SNAPSHOT")
(defn deploy-info
"Generate deployment information from the URL supplied and the username and
password for Nexus supplied as environment variables."
[url]
{:url url
:username :env/nexus_jenkins_username
:password :env/nexus_jenkins_password
:sign-releases false})
(def tk-version "0.5.2")
(def tk-jetty9-version "0.9.0")
(def ks-version "0.7.2")
(defproject puppetlabs/puppetdb pdb-version
:description "Puppet-integrated catalog and fact storage"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:url "https://docs.puppetlabs.com/puppetdb/"
;; Abort when version ranges or version conflicts are detected in
;; dependencies. Also supports :warn to simply emit warnings.
;; requires lein 2.2.0+.
:pedantic? :abort
:dependencies [[org.clojure/clojure "1.6.0"]
[cheshire "5.3.1"]
[org.clojure/core.match "0.2.0-rc5"]
[org.clojure/math.combinatorics "0.0.4"]
[org.clojure/math.numeric-tower "0.0.4"]
[org.clojure/tools.logging "0.2.6"]
[org.clojure/tools.nrepl "0.2.3"]
[puppetlabs/tools.namespace "0.2.4.1"]
[vimclojure/server "2.3.6" :exclusions [org.clojure/clojure]]
[clj-stacktrace "0.2.6"]
[metrics-clojure "0.7.0" :exclusions [org.clojure/clojure org.slf4j/slf4j-api]]
[clj-time "0.5.1"]
[org.clojure/java.jmx "0.2.0"]
;; Filesystem utilities
[fs "1.1.2"]
;; Version information
[trptcolin/versioneer "0.1.0"]
;; Job scheduling
[overtone/at-at "1.2.0"]
;; Nicer exception handling with try+/throw+
[slingshot "0.10.3"]
;; Database connectivity
[com.jolbox/bonecp "0.7.1.RELEASE" :exclusions [org.slf4j/slf4j-api]]
[org.clojure/java.jdbc "0.1.1"]
[org.hsqldb/hsqldb "2.2.8"]
[org.postgresql/postgresql "9.2-1003-jdbc4"]
[clojureql "1.0.3"]
;; MQ connectivity
[clamq/clamq-activemq "0.4" :exclusions [org.slf4j/slf4j-api]]
[org.apache.activemq/activemq-core "5.7.0" :exclusions [org.slf4j/slf4j-api org.fusesource.fuse-extra/fusemq-leveldb]]
;; bridge to allow some spring/activemq stuff to log over slf4j
[org.slf4j/jcl-over-slf4j "1.7.6"]
;; WebAPI support libraries.
[net.cgrand/moustache "1.1.0" :exclusions [ring/ring-core org.clojure/clojure]]
[compojure "1.1.6"]
[clj-http "0.5.3"]
[ring/ring-core "1.2.1" :exclusions [javax.servlet/servlet-api]]
[org.apache.commons/commons-compress "1.8"]
[puppetlabs/kitchensink ~ks-version]
[puppetlabs/trapperkeeper ~tk-version]
[puppetlabs/trapperkeeper-webserver-jetty9 ~tk-jetty9-version]
[prismatic/schema "0.2.2"]
[org.clojure/tools.macro "0.1.5"]
[com.novemberain/pantomime "2.1.0"]
[fast-zip-visit "1.0.2"]
[robert/hooke "1.3.0"]]
:jvm-opts ["-XX:MaxPermSize=128M"]
;;The below test-selectors is basically using the PUPPETDB_DBTYPE
;;environment variable to be the test selector. The selector below
;;will always run a test, unless it has a meta value for that
;;dbtype, and that value is falsey, such as
;;(deftest ^{:postgres false} my-test-name...)
:test-selectors {:default (fn [test-var-meta]
(let [dbtype (keyword (or (System/getenv "PUPPETDB_DBTYPE")
"hsqldb"))]
(get test-var-meta dbtype true)))}
:repositories [["releases" "http://nexus.delivery.puppetlabs.net/content/repositories/releases/"]
["snapshots" "http://nexus.delivery.puppetlabs.net/content/repositories/snapshots/"]]
:plugins [[lein-release "1.0.5"]]
:lein-release {:scm :git
:deploy-via :lein-deploy}
:uberjar-name "puppetdb-release.jar"
:lein-ezbake {:vars {:user "puppetdb"
:group "puppetdb"
:build-type "foss"
:main-namespace "puppetlabs.puppetdb.main"
:create-varlib true}
:config-dir "ext/config"
}
:deploy-repositories [["releases" ~(deploy-info "http://nexus.delivery.puppetlabs.net/content/repositories/releases/")]
["snapshots" ~(deploy-info "http://nexus.delivery.puppetlabs.net/content/repositories/snapshots/")]]
:profiles {:dev {:resource-paths ["test-resources"],
:dependencies [[ring-mock "0.1.5"]
[puppetlabs/trapperkeeper ~tk-version :classifier "test"]
[puppetlabs/kitchensink ~ks-version :classifier "test"]
[puppetlabs/trapperkeeper-webserver-jetty9 ~tk-jetty9-version :classifier "test"]
[org.flatland/ordered "1.5.2"]
[org.clojure/test.check "0.5.8"]]}
:ezbake {:dependencies ^:replace [[puppetlabs/puppetdb ~pdb-version]
[org.clojure/tools.nrepl "0.2.3"]]
:name "puppetdb"
:plugins [[puppetlabs/lein-ezbake "0.1.0-SNAPSHOT"
:exclusions [org.clojure/clojure]]]}
:ci {:plugins [[lein-pprint "1.1.1"]]}}
:jar-exclusions [#"leiningen/"]
:resource-paths ["resources" "puppet/lib" "resources/puppetlabs/puppetdb" "resources/ext/docs"]
:main ^:skip-aot puppetlabs.puppetdb.core)