-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
34 lines (31 loc) · 1.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
(defproject shipments-api "0.0.1-SNAPSHOT"
:description "Manage shipments from any device."
:url "http://github.com/shipify/shipments-api"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[io.pedestal/pedestal.service "0.2.2"]
[io.pedestal/pedestal.service-tools "0.2.2"]
[com.novemberain/validateur "2.0.0-beta3"]
[cheshire "5.3.1"]
;; Remove this line and uncomment the next line to
;; use Tomcat instead of Jetty:
[io.pedestal/pedestal.jetty "0.2.2"]
;; [io.pedestal/pedestal.tomcat "0.2.2"]
]
:min-lein-version "2.0.0"
:resource-paths ["config", "resources"]
:aliases {"run-dev" ["trampoline" "run" "-m" "shipments-api.server/run-dev"]}
:repl-options {:init-ns user
:init (try
(use 'io.pedestal.service-tools.dev)
(require 'shipments-api.service)
;; Nasty trick to get around being unable to reference non-clojure.core symbols in :init
(eval '(init shipments-api.service/service #'shipments-api.service/routes))
(catch Throwable t
(println "ERROR: There was a problem loading io.pedestal.service-tools.dev")
(clojure.stacktrace/print-stack-trace t)
(println)))
:welcome (println "Welcome to pedestal-service! Run (tools-help) to see a list of useful functions.")}
:main ^{:skip-aot true} shipments-api.server
:immutant {:nrepl-port 4004})