-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.boot
51 lines (44 loc) · 1.65 KB
/
build.boot
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
(set-env!
:resource-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.9.0"]
[nightlight "1.7.0" :scope "test"]
[adzerk/boot-test "1.2.0" :scope "test"]
[org.nd4j/nd4j-native-platform "1.0.0-beta3" :scope "test"]
[org.deeplearning4j/deeplearning4j-nlp "1.0.0-beta3"]
[org.datavec/datavec-api "1.0.0-beta3"]
[org.apache.lucene/lucene-snowball "3.0.3"]
[hswick/jutsu.matrix "0.0.16"]]
:repositories (conj (get-env :repositories)
["clojars" {:url "https://clojars.org/repo"
:username (System/getenv "CLOJARS_USER")
:password (System/getenv "CLOJARS_PASS")}]))
(task-options!
jar {:main 'jutsu.nlp.core
:manifest {"Description" "jutsu.nlp is meant to do natural language processing tasks such as word embedding."}}
pom {:version "0.1.1-SNAPSHOT"
:project 'hswick/jutsu.nlp
:description "jutsu.nlp is meant to do natural language processing tasks such as word embedding."
:url "https://github.com/hswick/jutsu.nlp"}
push {:repo "clojars"})
(deftask deploy []
(comp
(pom)
(jar)
(push)))
;;So nightlight can still open even if there is an error in the core file
(try
(require 'jutsu.nlp.core)
(catch Exception e (.getMessage e)))
(require
'[nightlight.boot :refer [nightlight]]
'[adzerk.boot-test :refer :all])
(deftask night []
(comp
(wait)
(nightlight :port 4000)))
(deftask testing [] (merge-env! :source-paths #{"test" "data"}) identity)
(deftask test-code
[]
(comp
(testing)
(test)))