-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.clj
52 lines (42 loc) · 1.46 KB
/
build.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
; Copyright 2021- Rahul De
;
; Use of this source code is governed by an MIT-style
; license that can be found in the LICENSE file or at
; https://opensource.org/licenses/MIT.
(ns build
(:require [clojure.tools.build.api :as b]
[deps-deploy.deps-deploy :as dd]))
(def lib 'org.clojars.lispyclouds/navi)
(def version "0.1.3")
(def class-dir "target/classes")
(def basis (b/create-basis {:project "deps.edn"}))
(def jar-file (format "target/%s-%s.jar" (name lib) version))
(def src-dirs ["src"])
(defn clean
[_]
(b/delete {:path "target"}))
(defn jar
[_]
(b/write-pom {:class-dir class-dir
:lib lib
:version version
:basis basis
:src-dirs src-dirs
:pom-data [[:author "Rahul De <[email protected]>"]
[:url "https://github.com/lispyclouds/navi"]
[:licenses
[:license
[:name "MIT"]
[:url "https://opensource.org/license/mit"]
[:distribution "repo"]]]]})
(b/copy-dir {:src-dirs src-dirs
:target-dir class-dir})
(b/jar {:class-dir class-dir
:jar-file jar-file}))
(defn deploy
[_]
(dd/deploy {:installer :remote
:sign-releases? true
:artifact jar-file
:pom-file (b/pom-path {:lib lib
:class-dir class-dir})}))