-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
project.clj
44 lines (43 loc) · 2.73 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
(def jetty-version "9.4.39.v20210325")
(defproject info.sunng/ring-jetty9-adapter "0.14.3"
: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.2"]
[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]]
:deploy-repositories {"releases" :clojars}
:global-vars {*warn-on-reflection* true}
:jvm-args ["-Xmx128m"]
:profiles {:dev {:dependencies [[clj-http "3.10.1"]
[stylefruits/gniazdo "1.1.4"]]}
;; for openjdk8 above u252
:example-http2-openjdk8 {:source-paths ["examples/"]
:main ^:skip-aot rj9a.http2
:dependencies [[org.eclipse.jetty/jetty-alpn-openjdk8-server ~jetty-version]]}
;; for openjdk8 below u252
:example-http2-legacy {:source-paths ["examples/"]
:main ^:skip-aot rj9a.http2
:dependencies [;; 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 {:source-paths ["examples/"]
:main ^:skip-aot rj9a.http2
:dependencies [[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}})