File tree Expand file tree Collapse file tree 2 files changed +44
-6
lines changed Expand file tree Collapse file tree 2 files changed +44
-6
lines changed Original file line number Diff line number Diff line change
1
+ (ns build
2
+ (:require [clojure.tools.build.api :as b]))
3
+
4
+ (def lib 'io.github.codeboost /xitdb-clj )
5
+ (def version " 0.1.1" )
6
+ (def class-dir " target/classes" )
7
+ (def basis (b/create-basis {:project " deps.edn" }))
8
+ (def jar-file (format " target/%s-%s.jar" (name lib) version))
9
+
10
+ (defn clean [_]
11
+ (b/delete {:path " target" }))
12
+
13
+ (defn jar [_]
14
+ (b/write-pom {:class-dir class-dir
15
+ :lib lib
16
+ :version version
17
+ :basis basis
18
+ :src-dirs [" src" ]
19
+ :scm {:url " https://github.com/codeboost/xitdb-clj" }
20
+ :pom-data [[:description " Embeddable, immutable database." ]
21
+ [:url " https://github.com/codeboost/xitdb-clj" ]
22
+ [:licenses
23
+ [:license
24
+ [:name " MIT License" ]
25
+ [:url " https://opensource.org/licenses/MIT" ]]]]})
26
+ (b/copy-dir {:src-dirs [" src" " resources" ]
27
+ :target-dir class-dir})
28
+ (b/jar {:class-dir class-dir
29
+ :jar-file jar-file}))
30
+
31
+ (defn deploy [_]
32
+ (jar nil )
33
+ ((requiring-resolve 'deps-deploy.deps-deploy/deploy)
34
+ {:installer :remote
35
+ :artifact jar-file
36
+ :pom-file (b/pom-path {:lib lib :class-dir class-dir})}))
Original file line number Diff line number Diff line change 3
3
io.github.radarroark/xitdb {:mvn/version " 0.20.0" }}
4
4
5
5
:aliases
6
- {:test
7
- {:extra-deps {io.github.cognitect-labs/test-runner
8
- {:git/url " https://github.com/cognitect-labs/test-runner.git"
9
- :git/tag " v0.5.1"
10
- :git/sha " dfb30dd" }}
6
+ {:test {:extra-deps {io.github.cognitect-labs/test-runner
7
+ {:git/url " https://github.com/cognitect-labs/test-runner.git"
8
+ :git/tag " v0.5.1"
9
+ :git/sha " dfb30dd" }}
11
10
12
- :main-opts [" -m" " cognitect.test-runner" ]}}}
11
+ :main-opts [" -m" " cognitect.test-runner" ]}
12
+ :build {:deps {io.github.clojure/tools.build {:mvn/version " 0.9.6" }
13
+ slipset/deps-deploy {:mvn/version " 0.2.2" }}
14
+ :ns-default build}}}
13
15
You can’t perform that action at this time.
0 commit comments