forked from donut-party/dbxray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.clj
42 lines (33 loc) · 831 Bytes
/
build.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
(ns build
"dbxray's build script. inspired by:
* https://github.com/seancorfield/honeysql/blob/develop/build.clj
* https://github.com/seancorfield/build-clj
Run tests:
clojure -X:test
clojure -X:test-cljs
For more information, run:
clojure -A:deps -T:build help/doc"
(:refer-clojure :exclude [test])
(:require [clojure.tools.build.api :as b]
[org.corfield.build :as bb]))
(def lib 'ai.motiva/dbxray)
(def version "0.1.1")
(defn deploy
"Deploy the JAR to Clojars"
[opts]
(-> opts
(assoc :lib lib :version version)
(bb/deploy)))
(defn jar
"Builds a jar"
[opts]
(-> opts
(assoc :lib lib :version version)
(bb/clean)
(bb/jar)))
(defn install
"Install the JAR locally."
[opts]
(-> opts
(assoc :lib lib :version version)
(bb/install)))