forked from puppetlabs/trapperkeeper-webserver-jetty9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
65 lines (52 loc) · 2.98 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
(def tk-version "0.4.0")
(def ks-version "0.7.1")
(defproject puppetlabs/trapperkeeper-webserver-jetty9 "0.5.2-SNAPSHOT"
:description "We are trapperkeeper. We are one."
;; 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.5.1"]
[org.clojure/tools.logging "0.2.6"]
[puppetlabs/kitchensink ~ks-version]
[puppetlabs/trapperkeeper ~tk-version]
[puppetlabs/certificate-authority "0.1.4"]
[javax.servlet/javax.servlet-api "3.1.0"]
;; Jetty Webserver
[org.eclipse.jetty/jetty-server "9.1.0.v20131115"
:exclusions [org.eclipse.jetty.orbit/javax.servlet]]
[org.eclipse.jetty/jetty-servlet "9.1.0.v20131115"]
[org.eclipse.jetty/jetty-servlets "9.1.0.v20131115"]
[org.eclipse.jetty/jetty-webapp "9.1.0.v20131115"]
[org.eclipse.jetty/jetty-proxy "9.1.0.v20131115"]
[ring/ring-servlet "1.1.8" :exclusions [javax.servlet/servlet-api]]]
:plugins [[lein-release "1.0.5"]]
:lein-release {:scm :git
:deploy-via :lein-deploy}
:deploy-repositories [["releases" {:url "https://clojars.org/repo"
:username :env/clojars_jenkins_username
:password :env/clojars_jenkins_password
:sign-releases false}]]
;; 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]]
:test-paths ["test/clj"]
:profiles {:dev {:source-paths ["examples/ring_app/src"
"examples/servlet_app/src/clj"
"examples/war_app/src"]
:java-source-paths ["examples/servlet_app/src/java"
"test/java"]
:dependencies [[puppetlabs/http-client "0.1.6"]
[puppetlabs/kitchensink ~ks-version :classifier "test"]
[puppetlabs/trapperkeeper ~tk-version :classifier "test"]
[org.clojure/tools.namespace "0.2.4"]
[spyscope "0.1.4"]]
:injections [(require 'spyscope.core)]}
:testutils {:source-paths ^:replace ["test/clj"]
:java-source-paths ^:replace ["test/java"]}
:uberjar {:aot [puppetlabs.trapperkeeper.main]
:classifiers ^:replace []}}
:main puppetlabs.trapperkeeper.main
)