-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathproject.clj
85 lines (85 loc) · 5.55 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
(require '[clojure.string :as str])
(def clojure-versions ["1.8" "1.9" "1.10" "1.11" "1.12"])
(def threeten-extra-version "1.4")
(def joda-time-version "2.10.1")
(def math-combinatorics-version "0.2.0")
(defproject clojure.java-time "1.4.4-SNAPSHOT"
:description "Clojure wrapper for Java 8 Time API"
:url "http://github.com/dm3/clojure.java-time"
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"}
:scm {:name "git"
:url "http://github.com/dm3/clojure.java-time"}
:dependencies [[org.clojure/clojure "1.11.1" :scope "provided"]]
:plugins [[lein-codox "0.10.8"]
[lein-shell "0.5.0"]
[jonase/eastwood "1.2.3"]]
:release-tasks [["clean"]
["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version" "release"]
["doc"]
["shell" "./bin/-release-readme+changelog.clj"]
["vcs" "commit"]
["vcs" "tag" "--no-sign"]
["deploy" "clojars"]
["change" "version" "leiningen.release/bump-version"]
["vcs" "commit"]
["vcs" "push"]]
:profiles {:dev {:dependencies [[criterium "0.4.4"]
[com.taoensso/timbre "5.2.1"]
[com.taoensso/tufte "2.2.0"]
[org.clojure/tools.namespace "1.3.0"]
[joda-time/joda-time ~joda-time-version]
[org.threeten/threeten-extra ~threeten-extra-version]
[org.clojure/math.combinatorics ~math-combinatorics-version]]
:source-paths ["dev"]
:global-vars {*warn-on-reflection* true}
:eastwood {:exclude-namespaces [java-time
java-time.api
;;FIXME
java-time.api-test
java-time.test-utils]
:exclude-linters []}}
;; lein doc
:codox {:injections [(require 'java-time)
(require 'java-time.dev.gen)
(java-time.dev.gen/spit-java-time-ns)]
:codox {:namespaces [java-time java-time.api java-time.repl]
:doc-files ["README.md" "CHANGELOG.md"]
:metadata {:doc/format :markdown}
:output-path "docs"
:source-uri "https://github.com/dm3/clojure.java-time/blob/{git-commit}/{filepath}#L{line}"}}
:async-profiler
{:jvm-opts ["-Djdk.attach.allowAttachSelf" "-XX:+UnlockDiagnosticVMOptions" "-XX:+DebugNonSafepoints"]
:dependencies [[com.clojure-goes-fast/clj-async-profiler "0.3.1"]]}
:test {:dependencies [[org.clojure/math.combinatorics ~math-combinatorics-version]]}
:1.8 {:dependencies [[org.clojure/clojure "1.8.0"]]}
:1.8-three-ten-joda {:dependencies [[org.clojure/clojure "1.8.0"]
[org.threeten/threeten-extra ~threeten-extra-version]
[joda-time/joda-time ~joda-time-version]]}
:1.9 {:dependencies [[org.clojure/clojure "1.9.0"]]}
:1.9-three-ten-joda {:dependencies [[org.clojure/clojure "1.9.0"]
[org.threeten/threeten-extra ~threeten-extra-version]
[joda-time/joda-time ~joda-time-version]]}
:1.10 {:dependencies [[org.clojure/clojure "1.10.3"]]}
:1.10-three-ten-joda {:dependencies [[org.clojure/clojure "1.10.3"]
[org.threeten/threeten-extra ~threeten-extra-version]
[joda-time/joda-time ~joda-time-version]]}
:1.11 {:dependencies [[org.clojure/clojure "1.11.1"]]}
:1.11-three-ten-joda {:dependencies [[org.clojure/clojure "1.11.1"]
[org.threeten/threeten-extra ~threeten-extra-version]
[joda-time/joda-time ~joda-time-version]]
:repositories [["sonatype-oss-public" {:url "https://oss.sonatype.org/content/groups/public"}]]}
:1.12 {:dependencies [[org.clojure/clojure "1.12.0-master-SNAPSHOT"]]
:repositories [["sonatype-oss-public" {:url "https://oss.sonatype.org/content/groups/public"}]]}
:1.12-three-ten-joda {:dependencies [[org.clojure/clojure "1.12.0-master-SNAPSHOT"]
[org.threeten/threeten-extra ~threeten-extra-version]
[joda-time/joda-time ~joda-time-version]]
:repositories [["sonatype-oss-public" {:url "https://oss.sonatype.org/content/groups/public"}]]}}
:aliases {"all" ["with-profile" ~(str "test," (str/join ":" (mapcat (juxt identity #(str % "-three-ten-joda")) clojure-versions)))]
"warm-deps" ["all" "deps"]
"doc" ["do"
["with-profile" "-user,+codox" "codox"]
;; regenerating api namespaces seems to happen after codox generates
["with-profile" "-user,+codox" "codox"]]
"test-all" ["all" "test"]})