Skip to content

Commit 34e075f

Browse files
committed
added build/deploy code
1 parent 9869884 commit 34e075f

File tree

2 files changed

+55
-8
lines changed

2 files changed

+55
-8
lines changed

deps.edn

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
{:paths ["src"]
2-
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
3-
aysylu/loom {:mvn/version "1.0.2"}
4-
camel-snake-kebab {:mvn/version "0.4.2"}
5-
edu.stanford.nlp/stanford-corenlp {:mvn/version "4.2.0"}
6-
scicloj/metamorph.ml {:mvn/version "0.3.0-alpha3"}
7-
techascent/tech.ml.dataset {:mvn/version "5.05"}}
2+
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
3+
aysylu/loom {:mvn/version "1.0.2"}
4+
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.2"}
5+
edu.stanford.nlp/stanford-corenlp {:mvn/version "4.3.2"}
86

9-
:aliases {:dev {:extra-deps {edu.stanford.nlp/stanford-corenlp$models {:mvn/version "4.2.0"}
10-
edu.stanford.nlp/stanford-corenlp$models-chinese {:mvn/version "4.2.0"}}
7+
;; Below dependencies needed for the ML contributions by behrica.
8+
scicloj/metamorph.ml {:mvn/version "0.3.0-alpha3"}
9+
techascent/tech.ml.dataset {:mvn/version "5.05"}}
10+
11+
:aliases {:dev {:extra-deps {edu.stanford.nlp/stanford-corenlp$models {:mvn/version "4.3.2"}
12+
edu.stanford.nlp/stanford-corenlp$models-chinese {:mvn/version "4.3.2"}}
1113
:extra-paths ["dev/src"]
1214
:jvm-opts ["-Xmx4G"]}
15+
:test {:extra-paths ["test"]
16+
:extra-deps {org.clojure/test.check {:mvn/version "1.1.1"}
17+
io.github.cognitect-labs/test-runner {:git/tag "v0.5.0" :git/sha "48c3c67"}}
18+
:exec-fn cognitect.test-runner.api/test}
19+
:build {:extra-paths ["dev/src"]
20+
:extra-deps {io.github.seancorfield/build-clj {:git/tag "v0.6.5"
21+
:git/sha "972031a"}}
22+
23+
:ns-default build}
1324
:rebl {:extra-deps {com.cognitect/rebl {:mvn/version "0.9.242"}
1425
org.openjfx/javafx-fxml {:mvn/version "15-ea+6"}
1526
org.openjfx/javafx-controls {:mvn/version "15-ea+6"}

dev/src/build.clj

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
(ns build
2+
(:require [clojure.tools.build.api :as b]
3+
[org.corfield.build :as bb]))
4+
5+
(def lib 'dk.simongray/datalinguist)
6+
;; if you want a version of MAJOR.MINOR.COMMITS:
7+
(def version (format "0.1.%s" (b/git-count-revs nil)))
8+
9+
(defn ci
10+
"Run the CI pipeline of tests (and build the JAR)."
11+
[opts]
12+
(-> opts
13+
(assoc :lib lib :version version)
14+
(bb/run-tests)
15+
(bb/clean)
16+
(bb/jar)))
17+
18+
(defn install
19+
"Install the JAR locally."
20+
[opts]
21+
(-> opts
22+
(assoc :lib lib :version version)
23+
(bb/install)))
24+
25+
(defn deploy
26+
"Deploy the JAR to Clojars."
27+
[opts]
28+
(-> opts
29+
(assoc :lib lib :version version)
30+
(bb/deploy)))
31+
32+
(comment
33+
(ci {})
34+
(install {})
35+
(deploy {})
36+
#_.)

0 commit comments

Comments
 (0)