forked from puppetlabs/puppetdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
145 lines (122 loc) · 6.5 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
(def pdb-version "3.2.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 "1.1.1")
(def tk-jetty9-version "1.3.1")
(def ks-version "1.1.0")
(def pdb-jvm-opts
(case (System/getProperty "java.specification.version")
"1.7" ["-XX:MaxPermSize=200M"]
[]))
(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.7.0"]
[cheshire "5.4.0"]
[org.clojure/core.match "0.2.2"]
[org.clojure/math.combinatorics "0.0.4"]
[org.clojure/math.numeric-tower "0.0.4"]
[org.clojure/tools.logging "0.3.1"]
[puppetlabs/tools.namespace "0.2.4.1"]
[clj-stacktrace "0.2.8"]
[metrics-clojure "0.7.0" :exclusions [org.clojure/clojure org.slf4j/slf4j-api]]
[clj-time "0.9.0"]
[org.clojure/java.jmx "0.3.1"]
;; Filesystem utilities
[me.raynes/fs "1.4.5"]
;; Version information
[puppetlabs/dujour-version-check "0.1.3"]
;; Job scheduling
[overtone/at-at "1.2.0"]
;; Nicer exception handling with try+/throw+
[slingshot "0.12.2"]
;; Database connectivity
[com.jolbox/bonecp "0.7.1.RELEASE" :exclusions [org.slf4j/slf4j-api]]
[org.clojure/java.jdbc "0.3.7"]
[org.hsqldb/hsqldb "2.2.8"]
[org.postgresql/postgresql "9.2-1003-jdbc4"]
;; MQ connectivity
[org.apache.activemq/activemq-broker "5.11.1"]
[org.apache.activemq/activemq-kahadb-store "5.11.1"]
[org.apache.activemq/activemq-pool "5.11.1"]
;; bridge to allow some spring/activemq stuff to log over slf4j
[org.slf4j/jcl-over-slf4j "1.7.10"]
;; WebAPI support libraries.
[net.cgrand/moustache "1.1.0" :exclusions [ring/ring-core org.clojure/clojure]]
[compojure "1.3.3"]
[clj-http "1.0.1"]
[ring/ring-core "1.3.2" :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.4.1"]
[org.clojure/tools.macro "0.1.5"]
[com.novemberain/pantomime "2.1.0"]
[fast-zip-visit "1.0.2"]
[robert/hooke "1.3.0"]
[honeysql "0.5.2"]
[org.clojure/data.xml "0.0.8"]
[com.rpl/specter "0.5.7"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[puppetlabs/http-client "0.4.4"]]
:jvm-opts ~pdb-jvm-opts
;;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 (or (keyword (System/getenv "PUPPETDB_DBTYPE"))
:postgres)]
(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.jar"
:lein-ezbake {:vars {:user "puppetdb"
:group "puppetdb"
:build-type "foss"
:main-namespace "puppetlabs.puppetdb.main"
:repo-target "PC1"}
:config-dir "ext/config/foss"
}
:deploy-repositories [["releases" ~(deploy-info "http://nexus.delivery.puppetlabs.net/content/repositories/releases/")]
["snapshots" ~(deploy-info "http://nexus.delivery.puppetlabs.net/content/repositories/snapshots/")]]
;; By declaring a classifier here and a corresponding profile below we'll get an additional jar
;; during `lein jar` that has all the code in the test/ directory. Downstream projects can then
;; depend on this test jar using a :classifier in their :dependencies to reuse the test utility
;; code that we have.
:classifiers [["test" :testutils]]
: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.9"]
[environ "1.0.0"]]}
:ezbake {:dependencies ^:replace [[puppetlabs/puppetdb ~pdb-version]
[org.clojure/tools.nrepl "0.2.3"]]
:name "puppetdb"
:plugins [[puppetlabs/lein-ezbake "0.3.18"
:exclusions [org.clojure/clojure]]]}
:testutils {:source-paths ^:replace ["test"]}
: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)