forked from sunng87/ring-jetty9-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
45 lines (44 loc) · 2.88 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
(def jetty-version "9.4.44.v20210927") ;; NOTE: Have this match the latest jetty fetched via ring!
(defproject org.clojars.lnostdal/ring-jetty9-adapter "0.14.10-lrn"
: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.3"]
[ring/ring-servlet "1.9.5"
: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 {"clojars" {:url "https://clojars.org/repo"
:sign-releases false}}
:global-vars {*warn-on-reflection* true}
:jvm-args ["-Xmx128m"]
:profiles {:dev {:dependencies [[clj-http "3.12.3"]
[stylefruits/gniazdo "1.2.0"]]}
;; 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}})