-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
85 lines (69 loc) · 2.21 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
(defproject bob "0.1.0-SNAPSHOT"
; GENERAL OPTIONS
:description "description"
:url "url"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:aot :all
:omit-source true
:jvm-opts ["-ea"]
:jar-name "bob.jar"
:uberjar-name "bob-standalone.jar"
:main bob.main
; DEPENDENCIES
:dependencies [
[org.clojure/clojure "1.6.0"]
;; Channels
[org.clojure/core.async "0.1.303.0-886421-alpha"]
;; Command line options
[org.clojure/tools.cli "0.3.1" ]
;; Runtime assertions
[pjstadig/assertions "0.1.0"]
;; File system utilities
[me.raynes/fs "1.4.5"]
;; Date & time utilities
[clj-time "0.7.0"]
;; ANSI colors in terminal
[clansi "1.0.0"]
;; File checksums
[commons-codec/commons-codec "1.9"]
]
; SOURCE DIRECTORY RECONFIGURATION
:source-paths ["src/main/clojure"]
:java-source-paths ["src/main/java"]
:test-paths ["src/test/clojure"]
; PLUGINS + CONFIGURATION
:plugins [
[codox "0.8.10"]
[lein-resource "0.3.7"]
[lein-ancient "0.5.5"]
]
;; codox configuration
:codox {
:output-dir "target/apidoc"
:sources [ "src/main/clojure"]
:defaults {:doc/format :markdown}
;; Uncomment this to get github links in sources
;; :src-dir-uri "githubrepo/blob/master/"
;; :src-linenum-anchor-prefix "L"
}
;; resource plugin configuration
:hooks [ leiningen.resource ]
:resource {
:resource-paths ["src-res"]
:target-path "src/main/clojure/bob"
:extra-values
{ :msg
~(str "This file was generated automatically"
" by the lein resource plugin.")
:version
~(clojure.string/trim
(:out (clojure.java.shell/sh "sbin/info" "version")))
:build-date
~(clojure.string/trim
(:out (clojure.java.shell/sh "sbin/info" "buil-date")))
:commit
~(clojure.string/trim
(:out (clojure.java.shell/sh "sbin/info" "sha"))) }
}
)