-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.boot.disabled
69 lines (59 loc) · 1.77 KB
/
build.boot.disabled
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
; -*- coding: utf-8 -*-
; vi: syntax=clojure fileencoding=utf8
(require
'[boot.pod :as pod]
'[clojure.java.io :as io])
(def uber-dependencies
'[[org.clojure/clojure "1.9.0-alpha14"]
[version-clj "0.1.2"]
[org.clojure/tools.cli "0.3.5"]
[adzerk/boot-test "1.2.0"]
[org.clojure/core.match "0.3.0-alpha4"]
[com.velisco/tagged "0.5.0"]])
(def testing-dependencies
(into uber-dependencies
'[
[adzerk/boot-test "1.2.0"]
[org.clojure/core.match "0.3.0-alpha4"]
]))
(def testing-env {
:project "degasolv"
:version "1.0.2-SNAPSHOT"
:resource-paths #{"src"}
:repositories '[["central" "https://repo1.maven.org/maven2/"]
["clojars" "http://clojars.org/repo"]
["Animalia nexus" "http://62.89.42.8:8082/nexus/content/groups/public"]]
:dependencies testing-dependencies
:source-paths #{"src" "test"}
})
(def uber-env (into testing-env
{:dependencies uber-dependencies
:source-paths #{"src"}}))
(apply set-env! (apply concat testing-env))
(require '[adzerk.boot-test :refer :all])
(task-options!
jar {:main 'degasolv.cli}
target {:dir #{"target"}}
sift {:include #{#"\.jar$"}}
aot {:namespace #{'degasolv.cli
'degasolv.resolver}}
pom {:project 'degasolv/degasolv
:version "1.0.2-SNAPSHOT"
:url "http://github.com/djhaskin987/degasolv"
:description "Dependency resolver with an eye toward building software."
:license {"Eclipse Public License" "http://www.eclipse.org/legal/epl-v10.html"}})
(deftask testing
"Profile setup for running tests."
[]
(set-env! :source-paths #(conj % "test"))
identity)
(deftask uberjar
[]
(apply set-env! (apply concat uber-env))
(comp (uber)
(aot)
(pom)
(jar :file (format "%s-%s-standalone.jar" (get-env :project) (get-env :version)))
(sift)
(target)))
(deftask deps [] (repl :server true))