File tree Expand file tree Collapse file tree 2 files changed +25
-6
lines changed
Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 33 (:require [clojure.tools.build.api :as b]
44 [org.corfield.build :as cb]))
55
6- (defn project
6+ (defn project
77 " apply project default to `opts`"
88 [opts]
9- (let [defaults { :lib 'sg.flybot/lasagna-pull
10- :version ( format " 0.4.%s " ( b/git-count-revs nil ))
11- :scm { :url " https://github.com/flybot-sg/lasagna-pull " } }]
9+ (let [version ( format " 0.4.%s " ( b/git-count-revs nil ))
10+ defaults { :lib 'sg.flybot/lasagna-pull
11+ :version version }]
1212 (merge defaults opts)))
1313
14- (defn tests
14+ (defn pom
15+ [opts]
16+ (let [pom-data
17+ [[:description " Precisely select from deep data structure" ]
18+ [:url " https://github.com/flybot-sg/lasagna-pull" ]
19+ [:licenses
20+ [:license
21+ [:name " Apache-2.0" ]
22+ [:url " https://www.apache.org/licenses/LICENSE-2.0.txt" ]]]
23+ [:organization " Flybot Pte Ltd" ]]
24+ opts (merge opts
25+ {:basis (b/create-basis {})
26+ :target " target"
27+ :pom-data pom-data})]
28+ (b/write-pom opts)
29+ opts))
30+
31+ (defn tests
1532 " run all tests, for clj and cljs."
1633 [opts]
1734 (-> opts
2441 (project )
2542 (cb/clean )
2643 (tests )
44+ (pom )
2745 (cb/jar )))
2846
2947(defn deploy
Original file line number Diff line number Diff line change 3232
3333 :build ; build
3434 {:deps
35- {io.github.seancorfield/build-clj {:git/tag " v0.9.2" , :git/sha " 9c9f078" }},
35+ {io.github.clojure/tools.build {:mvn/version " 0.10.8" }
36+ io.github.seancorfield/build-clj {:git/tag " v0.9.2" , :git/sha " 9c9f078" }},
3637 :ns-default build}}}
You can’t perform that action at this time.
0 commit comments