-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathproject.clj
79 lines (61 loc) · 3.87 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
(defproject puppetlabs/trapperkeeper-metrics "2.0.5-SNAPSHOT"
:description "Trapperkeeper Metrics Service"
:url "http://github.com/puppetlabs/trapperkeeper-metrics"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:min-lein-version "2.9.1"
:pedantic? :abort
:parent-project {:coords [puppetlabs/clj-parent "7.3.6"]
:inherit [:managed-dependencies]}
:dependencies [[org.clojure/clojure]
[prismatic/schema]
[puppetlabs/kitchensink]
[puppetlabs/trapperkeeper]
[puppetlabs/trapperkeeper-authorization]
[puppetlabs/ring-middleware]
[cheshire]
[org.clojure/java.jmx]
[org.clojure/tools.logging]
[io.dropwizard.metrics/metrics-core]
[io.dropwizard.metrics/metrics-graphite]
[org.jolokia/jolokia-core "1.7.0"]
[puppetlabs/comidi]
[puppetlabs/i18n]]
:plugins [[puppetlabs/i18n "0.9.2"]
[lein-parent "0.3.9"]]
:source-paths ["src/clj"]
:java-source-paths ["src/java"]
:deploy-repositories [["releases" {:url "https://clojars.org/repo"
:username :env/clojars_jenkins_username
:password :env/clojars_jenkins_password
:sign-releases false}]]
:classifiers [["test" :testutils]]
:profiles {:defaults {:dependencies [[puppetlabs/http-client]
[puppetlabs/trapperkeeper :classifier "test"]
[com.puppetlabs/trapperkeeper-webserver-jetty10]
[puppetlabs/kitchensink :classifier "test"]]}
:dev-dependencies {:dependencies [[org.bouncycastle/bcpkix-jdk18on]]}
:dev [:defaults :dev-dependencies]
:fips-dependencies {:dependencies [[org.bouncycastle/bcpkix-fips]
[org.bouncycastle/bc-fips]
[org.bouncycastle/bctls-fips]]
:jvm-opts ~(let [version (System/getProperty "java.specification.version")
[major minor _] (clojure.string/split version #"\.")
unsupported-ex (ex-info "Unsupported major Java version. Expects 8, 11 or 17."
{:major major
:minor minor})]
(condp = (java.lang.Integer/parseInt major)
1 (if (= 8 (java.lang.Integer/parseInt minor))
["-Djava.security.properties==./dev-resources/java.security.jdk8-fips"]
(throw unsupported-ex))
11 ["-Djava.security.properties==./dev-resources/java.security.jdk11-fips"]
17 ["-Djava.security.properties==./dev-resources/java.security.jdk17-fips"]
(throw unsupported-ex)))}
:fips [:defaults :fips-dependencies]
;; per https://github.com/technomancy/leiningen/issues/1907
;; the provided profile is necessary for lein jar / lein install
:provided {:dependencies [[org.bouncycastle/bcpkix-jdk18on]]}
:testutils {:source-paths ^:replace ["test"]
:java-source-paths ^:replace []}}
:repl-options {:init-ns examples.ring-app.repl}
:main puppetlabs.trapperkeeper.main)