This repository has been archived by the owner on Jan 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
project.clj
150 lines (146 loc) · 5.69 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
(def centos-lib-paths
["/usr/java/packages/lib/amd64"
"/usr/lib64"
"/lib64"
"/lib"
"/usr/lib"])
(def ubuntu-lib-paths
["/usr/java/packages/lib/amd64"
"/usr/lib/x86_64-linux-gnu/jni"
"/lib/x86_64-linux-gnu"
"/usr/lib/x86_64-linux-gnu"
"/usr/lib/jni"
"/lib:/usr/lib"])
(def gdal-paths
["/usr/lib/java/gdal"])
(defn get-lib-path []
(->> gdal-paths
(into centos-lib-paths)
(into ubuntu-lib-paths)
(clojure.string/join ":")
(str "-Djava.library.path=")))
(defproject gov.usgs.eros/lcmap-rest "1.0.0-SNAPSHOT"
:parent-project {
:coords [gov.usgs.eros/lcmap-system "1.0.0-SNAPSHOT"]
:inherit [
:deploy-repositories
:license
:managed-dependencies
:plugins
:pom-addition
:repositories
:target-path
;; XXX The following can be un-commented once this issue is resolved:
;; * https://github.com/achin/lein-parent/issues/3
;; [:profiles [:uberjar :dev]]
]}
:description "LCMAP REST Service API"
:url "https://github.com/USGS-EROS/lcmap-rest"
:dependencies [[org.clojure/clojure]
[org.clojure/core.match]
[org.clojure/data.codec]
[org.clojure/data.json]
[org.clojure/data.xml]
[org.clojure/core.memoize]
;; Componentization
[com.stuartsierra/component]
;; Logging and Error Handling -- note that we need to explicitly pull
;; in a version of slf4j so that we don't get conflict messages on the
;; console
[ring.middleware.logger]
[dire]
[slingshot]
;; REST
[compojure]
[http-kit]
[ring/ring-jetty-adapter]
[ring/ring-core]
[ring/ring-devel]
[ring/ring-json]
[ring/ring-defaults]
[jmorton/ring-accept]
[clojusc/ring-xml]
;; Authentication and authorization
[com.cemerick/friend]
;; Job Tracker
[org.clojure/core.cache]
[co.paralleluniverse/pulsar]
[org.clojars.hozumi/clj-commons-exec]
[digest]
;; DB
[clojurewerkz/cassaforte]
[net.jpountz.lz4/lz4]
[org.xerial.snappy/snappy-java]
;; LCMAP Components - note that the projects in ./checkouts
;; override these:
[gov.usgs.eros/lcmap-config]
[gov.usgs.eros/lcmap-client-clj]
[gov.usgs.eros/lcmap-logger]
[gov.usgs.eros/lcmap-event]
[gov.usgs.eros/lcmap-see]
[gov.usgs.eros/lcmap-data]
;; XXX note that we may still need to explicitly include the
;; Apache Java HTTP client, since the version used by the LCMAP
;; client is more recent than that used by Chas Emerick's
;; 'friend' library (the conflict causes a compile error which
;; is worked around by explicitly including Apache Java HTTP
;; client library).
;; XXX temp dependencies:
[org.apache.httpcomponents/httpclient]
[clojure-ini]
[clj-http]
;; Data types, encoding, validation, etc.
[prismatic/schema]
[byte-streams]
[clj-time]
[commons-codec]
;; Geospatial libraries
[clj-gdal]
;; Metrics
[metrics-clojure]
[metrics-clojure-jvm]
[metrics-clojure-ring]
;; Dev and project metadata
[leiningen-core]]
:plugins [[lein-parent "0.3.0"]]
:source-paths ["src" "test/support/auth-server/src"]
:java-agents [[co.paralleluniverse/quasar-core "0.7.6"]]
:jvm-opts ["-Dco.paralleluniverse.fibers.detectRunawayFibers=false"]
:repl-options {:init-ns lcmap.rest.dev
:timeout 60000}
:main lcmap.rest.app
:codox {:project {:name "lcmap.rest"
:description "The REST Service for the USGS Land Change Monitoring Assessment and Projection (LCMAP) Computation and Analysis Platform"}
:namespaces [#"^lcmap.rest\."]
:output-path "docs/master/current"
:doc-paths ["docs/source"]
:metadata {:doc/format :markdown
:doc "Documentation forthcoming"}}
;; List the namespaces whose log levels we want to control; note that if we
;; add more dependencies that are chatty in the logs, we'll want to add them
;; here.
:logging-namespaces [lcmap.rest
lcmap.see
lcmap.client
lcmap.data
com.datastax.driver
co.paralleluniverse]
:profiles {
:uberjar {:aot :all}
;; configuration for dev environment -- if you need to make local changes,
;; copy `:env { ... }` into `{:user ...}` in your ~/.lein/profiles.clj and
;; then override values there
:dev {
:aot :all
:jvm-opts [~(get-lib-path)
"-Dco.paralleluniverse.fibers.verifyInstrumentation=true"]
:source-paths ["dev-resources/src"]
:env
{:active-profile "development"}
:aliases {
"slamhound" ["run" "-m" "slam.hound"]
"see"
^{:doc (str "Command line interface for LCMAP SEE commands.\n"
"For more info run `lein see --help`\n")}
^:pass-through-help
["run" "-m" "lcmap.see.app"]}}})