forked from nginx-clojure/nginx-clojure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
115 lines (115 loc) · 6.44 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
(defproject nginx-clojure/nginx-clojure "0.4.5"
:description "Nginx module for clojure or groovy or java programming"
:url "https://github.com/nginx-clojure/nginx-clojure"
:license {:name "BSD 3-Clause license"
:url "http://opensource.org/licenses/BSD-3-Clause"}
:dependencies [
]
:plugins [[lein-junit "1.1.7"]
[lein-javadoc "0.2.0"]
[lein-codox "0.9.0"]
;[venantius/ultra "0.1.9"]
]
;; CLJ source code path
:source-paths ["src/clojure"]
:target-path "target/"
:global-vars {*warn-on-reflection* true
*assert* false}
:java-source-paths ["src/java"]
:javac-options ["-target" "1.6" "-source" "1.6" "-g" "-nowarn"]
;; Directory in which to place AOT-compiled files. Including %s will
;; splice the :target-path into this value.
:compile-path "target/classes"
;; Leave the contents of :source-paths out of jars (for AOT projects).
:omit-source false
:jar-exclusions [#"^test"
#"asm/.*\.java$"
#"Test.*class$" #".*for_test.clj$"]
:uberjar-exclusions [#"^test" #"\.java$"]
:manifest {"Premain-Class" "nginx.clojure.wave.JavaAgent"
"Can-Redefine-Classes" "true"
"Can-Retransform-Classes" "true"
}
:javadoc-opts {
:package-names ["nginx.clojure"]
}
:codox {:source-paths ["src/clojure"
"nginx-clojure-embed/src/clojure"]
:project {:name "nginx-clojure", :version "0.4.3", :description "N/A"}
:output-path "../nginx-clojure.github.io/api"
;:metadata {:doc/format :markdown}
:namespaces ["nginx.clojure.core" "nginx.clojure.session" "nginx.clojure.embed"]
:source-uri "https://github.com/nginx-clojure/nginx-clojure/blob/master/src/clojure/{classpath}#L{line}"}
:profiles {
:provided {
:dependencies [
[org.clojure/clojure "1.5.1"]
[org.clojure/tools.reader "0.8.1"]]
}
:dev {:dependencies [;only for test / compile usage
[org.clojure/clojure "1.5.1"]
[ring/ring-core "1.2.1"]
[compojure "1.1.6"]
[clj-http "0.7.8"]
[junit/junit "4.11"]
[org.clojure/java.jdbc "0.3.3"]
[mysql/mysql-connector-java "5.1.30"]
;for test file upload with ring-core which need it
[javax.servlet/servlet-api "2.5"]
[org.clojure/data.json "0.2.5"]
[org.codehaus.jackson/jackson-mapper-asl "1.9.13"]
[org.codehaus.groovy/groovy "2.3.4"]
[stylefruits/gniazdo "0.4.0"]
]}
:unittest {
:jvm-opts ["-javaagent:target/nginx-clojure-0.4.4.jar=mb"
"-Dnginx.clojure.wave.udfs=pure-clj.txt,compojure.txt,compojure-http-clj.txt"
"-Xbootclasspath/a:target/nginx-clojure-0.4.4.jar"]
:junit-options {:fork "on"}
:java-source-paths ["test/java" "test/clojure"]
:test-paths ["src/test/clojure"]
:source-paths ["test/clojure" "test/java" "test/nginx-working-dir/coroutine-udfs"]
:junit ["test/java"]
:compile-path "target/testclasses"
:dependencies [
[org.clojure/clojure "1.5.1"]
[ring/ring-core "1.2.1"]
[compojure "1.1.6"]
[clj-http "0.7.8"]
[junit/junit "4.11"]
[org.clojure/java.jdbc "0.3.3"]
[org.codehaus.jackson/jackson-mapper-asl "1.9.13"]
;[mysql/mysql-connector-java "5.1.30"]
]
}
:cljremotetest {
:java-source-paths ["test/java" "test/clojure"]
:test-paths ["src/test/clojure"]
:source-paths ["test/clojure" "test/java" "test/nginx-working-dir/coroutine-udfs"]
:compile-path "target/testclasses"
:test-selectors {:default (fn [m] (and (:remote m) (not (:async m)) (not (:jdbc m))))
:async :async
:jdbc :jdbc
:no-async (fn [m] (and (:remote m) (not (:async m))))
:access-handler :access-handler
:rewrite-handler :rewrite-handler
:websocket :websocket
:keepalive :keepalive
:all :remote}
:dependencies [
[org.clojure/clojure "1.5.1"]
[ring/ring-core "1.2.1"]
[compojure "1.1.6"]
[clj-http "0.7.8"]
[junit/junit "4.11"]
[org.clojure/java.jdbc "0.3.3"]
[org.clojure/tools.nrepl "0.2.3"]
;for test file upload with ring-core which need it
[javax.servlet/servlet-api "2.5"]
[org.codehaus.jackson/jackson-mapper-asl "1.9.13"]
[org.clojure/data.json "0.2.5"]
[stylefruits/gniazdo "0.4.0"]
;[mysql/mysql-connector-java "5.1.30"]
]
}
})