-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
162 lines (131 loc) · 6.91 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
;; ______________________________________________________________________
;; ____ _ _ _ __ __ _ _
;; / ___|(_)___| |_ ___ _ __ ___ (_) \/ | ___ __| | ___ _ __ _ __ (_)
;; \___ \| / __| __/ _ \ '_ ` _ \| | |\/| |/ _ \ / _` |/ _ \ '__| '_ \| |
;; ___) | \__ \ || __/ | | | | | | | | | (_) | (_| | __/ | | | | | |
;; |____/|_|___/\__\___|_| |_| |_|_|_| |_|\___/ \__,_|\___|_| |_| |_|_|
;; ______________________________________________________________________
(defproject sistemi "0.1"
:description "Sistemi Moderni Website"
:repositories {"project" "file:opt/m2"
"bitwalker.user-agent-utils.mvn.repo" {:url "https://raw.github.com/HaraldWalker/user-agent-utils/mvn-repo/"
:snapshots false
:releases {:checksum :ignore :update :always}}}
;; Use var/ for generated files.
:source-paths ["src/clj"]
:test-paths ["test/clj"]
:target-path "var/target"
:compile-path "var/target/classes"
:resource-paths ["etc/resources"]
:test-selectors {:default (complement :integration)
:integration :integration
:offline (complement :online)
:all (fn [_] true)}
:clean-targets [:target-path :compile-path "var/doc" "var/log" "lib"]
:dependencies [
;; sub dependencies to explicitly specify to avoid version overrides
;; note - these are not top level dependencies
;; note - re check these with lein deps :tree when upgrading top level dependencies
[org.eclipse.jetty/jetty-server "8.1.12.v20130726"]
[org.clojure/data.json "0.2.5"]
;; clojure
[org.clojure/clojure "1.6.0"]
[slingshot "0.10.3"]
;; logging
[org.clojure/tools.logging "0.3.0"]
[clj-logging-config "1.9.10"]
[org.slf4j/slf4j-api "1.7.7"]
[org.slf4j/slf4j-log4j12 "1.7.7"]
[log4j "1.2.17"]
[com.taoensso/timbre "3.2.1" :exclusions [org.clojure/tools.reader]]
;; ring core
[ring/ring-core "1.3.0" :exclusions [org.clojure/tools.reader]]
[ring/ring-devel "1.3.0" :exclusions [org.clojure/java.classpath]]
[ring/ring-jetty-adapter "1.3.0"]
;; ring handlers and middleware
[net.cgrand/moustache "1.1.0" :exclusions [org.clojure/clojure ring/ring-core]]
[ring-persistent-cookies "0.1.0"]
[ring/ring-json "0.3.1"]
;; templating
[hiccup "1.0.5"]
[enlive "1.1.5"]
[selmer "0.6.7"]
;; web client
[clj-http "0.9.2" :exclusions [org.clojure/tools.reader]]
;; email
[com.draines/postal "1.11.1"]
[clj-mandrill "0.1.0"]
[net.sf.cssbox/cssbox "4.5"]
;; user agent detection
[bitwalker/UserAgentUtils "1.13"]
;; calculation
[net.cgrand/spreadmap "0.1.4"]
[frinj "0.2.5"]
;; payment
[clojurewerkz/money "1.6.0"]
[abengoa/clj-stripe "1.0.4"]
;; validation
[bouncer "0.3.0"]
;; xml for UPS
[org.clojure/data.xml "0.0.7"]
[org.clojure/data.zip "0.1.1"]
;; Date related.
[net.objectlab.kit/datecalc-common "1.3.0"]
[net.objectlab.kit/datecalc-joda "1.3.0" :exclusions [joda-time]]
;; Datomic/Data
[com.datomic/datomic-pro "0.9.4384"
:exclusions [
;; Exclude these since using log4j for logging.
;; See: http://docs.datomic.com/configuring-logging.html
org.slf4j/slf4j-nop
org.slf4j/log4j-over-slf4j ; note: causes an IncompatibleClassChangeError if included
]]
[prismatic/schema "0.2.3"]
;; misc
[org.clojure/core.cache "0.6.3"]
[org.clojure/core.memoize "0.5.6"]
;; [flatland/ordered "1.5.2"] ; TODO use flatland/ordered as it is newer.
[ordered "1.3.2"]
[com.google.guava/guava "17.0"]
[org.clojure/tools.namespace "0.2.5"]
;; event driven
[http-kit "2.1.18"]
[org.clojure/core.async "0.1.303.0-886421-alpha"]
;; Clojurescript
[org.clojure/clojurescript "0.0-2234"]
[jayq "2.5.1"] ;; jquery wrapper
[rm-hull/monet "0.1.12" :exclusions [org.clojure/tools.reader]] ;; html5 canvas
[prismatic/dommy "0.1.2"] ;; jquery replacement using clojurescript idioms
[com.cemerick/url "0.1.1"]
[pathetic "0.5.1"]
;; REPL related
[cider/cider-nrepl "0.8.2"]
;; For proper handling of internationalized chars in url path segments.
[com.google.gdata/core "1.47.1" :exclusions [com.google.code.findbugs/jsr305]]]
:plugins [[lein-cljsbuild "1.0.3"]
[lein-marginalia "0.7.1"]
[lein-ancient "0.5.5"]
[lein-cloverage "1.0.2"]]
:aliases {"start" ["trampoline" "run" "-m" "sistemi.core"]
"init-db" ^{:doc "Initialize the datomic schema."} ["run" "-m" "sistemi.cli/init-db"]
"marg" ["marg" "--dir" "var/doc"]
"clov" ["cloverage" "-o" "var/cloverage"]}
:cljsbuild {:builds
{:dev {:source-paths ["src/cljs"]
:compiler
{:output-to "www/raw/js/main.js"
:output-dir "www/raw/js/dev"
:optimizations :whitespace
:source-map "www/raw/js/main.js.map"}}
:prod {:source-paths ["src/cljs"]
:compiler
{:optimizations :advanced
:externs ["src/cljs-externs/jquery-1.9.js"]
:pretty-print false
:output-to "www/raw/js/main.min.js"
:output-dir "var/target/cljsbuild/prod"}}}}
:profiles {:dev {:dependencies [[ring-mock "0.1.5" :exclusions [org.clojure/clojure]]
;; browser automated testing
[clj-webdriver/clj-webdriver "0.6.1" :exclusions [org.mortbay.jetty/jetty]]
[com.github.detro.ghostdriver/phantomjsdriver "1.1.0"]]
:jvm-opts ["-Dphantomjs.binary.path=./opt/phantomjs/current/bin/phantomjs"]} })