-
Notifications
You must be signed in to change notification settings - Fork 13
/
project.clj
78 lines (57 loc) · 3.26 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
(def puppetserver-version
"Version of Puppet Server to develop and test against. Defaults to 5.x."
(get (System/getenv) "PUPPETSERVER_VERSION" "5.1.6"))
(defproject puppetlabs/cdpe-api "0.0.1"
:description "Puppet Server endpoint for CD4PE."
:license {:name "Apache License 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:pedantic? :abort
:min-lein-version "2.7.1"
:plugins [[lein-parent "0.3.4"]]
;; Puppet Server 5.x uses clj-parent 1.x
;; Puppet Server 6.x uses clj-parent 2.x
;; TODO: Add switch based on PUPPETSERVER_VERSION
:parent-project {:coords [puppetlabs/clj-parent "1.7.8"]
:inherit [:managed-dependencies]}
:source-paths ["src/clj"]
:test-paths ["test/clj/integration"]
:dependencies [[org.clojure/clojure]
[ring/ring-core]
[puppetlabs/comidi]
[puppetlabs/ring-middleware]
[puppetlabs/trapperkeeper]
[puppetlabs/trapperkeeper-status]
[puppetlabs/trapperkeeper-webserver-jetty9]
[puppetlabs/puppetserver ~puppetserver-version]]
:repositories [["releases" "https://artifactory.delivery.puppetlabs.net/artifactory/clojure-releases__local/"]
["snapshots" "https://artifactory.delivery.puppetlabs.net/artifactory/clojure-snapshots__local/"]]
:profiles {:dev {:source-paths ["dev"]
:repl-options {:init-ns tk-devtools}
:resource-paths ["dev-resources"]
:dependencies [[org.clojure/tools.namespace]
[org.clojure/tools.nrepl]
[cheshire]
[ring-mock]
;; Re-declare dependencies with "test"
;; classifiers to pull in additional testing
;; code, helper functions and libraries.
[puppetlabs/trapperkeeper-webserver-jetty9 nil :classifier "test"]
[puppetlabs/trapperkeeper nil :classifier "test" :scope "test"]
[puppetlabs/kitchensink nil :classifier "test" :scope "test"]
[puppetlabs/http-client]
[me.raynes/fs]
;; Convert data between JRuby and Clojure objects.
[zweikopf "1.0.2" :exclusions [org.jruby/jruby-complete]]
[puppetlabs/puppetserver ~puppetserver-version :classifier "test" :scope "test"]]}
:puppet-module-aot {:jar-name "cdpe-api-aot.jar",
:aot [puppetlabs.trapperkeeper.main
puppetlabs.services.cdpe-api.cdpe-api-service
]
:jar-exclusions [#"ssl_utils"]
}
:puppet-module {:jar-name "cdpe-api.jar", }}
:test-selectors {:integration :integration}
:aliases {"tk" ["trampoline" "run"
"--bootstrap-config" "dev-resources/cdpe-api/bootstrap.cfg"
"--config" "dev-resources/cdpe-api/config.conf"]}
:main puppetlabs.trapperkeeper.main)