forked from sunng87/ring-jetty9-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
59 lines (58 loc) · 4.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
(def jetty-version "9.4.28.v20200408")
(defproject info.sunng/ring-jetty9-adapter "0.12.9-SNAPSHOT"
:description "Ring adapter for jetty9, which supports websocket and spdy"
:url "http://github.com/sunng87/ring-jetty9-adapter"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.10.1"]
[ring/ring-servlet "1.8.1"
:exclusions [javax.servlet/servlet-api]]
[org.eclipse.jetty/jetty-server ~jetty-version]
[org.eclipse.jetty.websocket/websocket-server ~jetty-version]
[org.eclipse.jetty.websocket/websocket-servlet ~jetty-version]
[org.eclipse.jetty.http2/http2-server ~jetty-version]
[org.eclipse.jetty/jetty-alpn-server ~jetty-version]
[org.eclipse.jetty/jetty-alpn-conscrypt-server ~jetty-version :exclusions [[org.conscrypt/conscrypt-openjdk-uber]]]
[org.conscrypt/conscrypt-openjdk "2.4.0" :classifier "linux-x86_64"]]
:deploy-repositories {"releases" :clojars}
:global-vars {*warn-on-reflection* true}
:jvm-args ["-Xmx128m"]
:profiles {:example-http2 {:source-paths ["examples/"]
:main ^:skip-aot rj9a.http2}
;; for openjdk8
:example-http2-openjdk8 {:source-paths ["examples/"]
:main ^:skip-aot rj9a.http2
:dependencies ^:replace [[org.clojure/clojure "1.10.1"]
[ring/ring-servlet "1.8.1"
:exclusions [javax.servlet/servlet-api]]
[org.eclipse.jetty/jetty-server ~jetty-version]
[org.eclipse.jetty.websocket/websocket-server ~jetty-version]
[org.eclipse.jetty.websocket/websocket-servlet ~jetty-version]
[org.eclipse.jetty.http2/http2-server ~jetty-version]
;; OpenJDK8 ALPN
[org.eclipse.jetty.alpn/alpn-api "1.1.3.v20160715"]
[org.eclipse.jetty/jetty-alpn-server ~jetty-version]
[org.eclipse.jetty/jetty-alpn-openjdk8-server ~jetty-version]]
:boot-dependencies [[org.mortbay.jetty.alpn/alpn-boot "8.1.12.v20180117"
:prepend true]]
:plugins [[info.sunng/lein-bootclasspath-deps "0.3.0"]]}
;; for jdk9+
:example-http2-jdk9 {:source-paths ["examples/"]
:main ^:skip-aot rj9a.http2
:dependencies ^:replace [[org.clojure/clojure "1.10.1"]
[ring/ring-servlet "1.8.0"
:exclusions [javax.servlet/servlet-api]]
[org.eclipse.jetty/jetty-server ~jetty-version]
[org.eclipse.jetty.websocket/websocket-server ~jetty-version]
[org.eclipse.jetty.websocket/websocket-servlet ~jetty-version]
[org.eclipse.jetty.http2/http2-server ~jetty-version]
;; JDK9 ALPN
[org.eclipse.jetty.alpn/alpn-api "1.1.3.v20160715"]
[org.eclipse.jetty/jetty-alpn-server ~jetty-version]
[org.eclipse.jetty/jetty-alpn-java-server ~jetty-version]]}
:example-websocket {:source-paths ["examples/"]
:main ^:skip-aot rj9a.websocket}
:example-http {:source-paths ["examples/"]
:main ^:skip-aot rj9a.http}
:example-async {:source-paths ["examples/"]
:main ^:skip-aot rj9a.async}})