-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.clj
26 lines (23 loc) · 1 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
(ns build
(:require [clojure.tools.build.api :as b]))
(def lib 'me.pmatiello/tui)
(def version "0.2.0")
(def class-dir "target/classes")
(def basis (b/create-basis {:project "deps.edn"}))
(def jar-file (format "target/%s-%s.jar" (name lib) version))
(defn clean [_]
(b/delete {:path "target"}))
(defn jar [_]
(b/write-pom {:class-dir class-dir
:lib lib
:version version
:basis basis
:src-dirs ["src"]
:scm {:url "https://github.com/pmatiello/tui"
:connection "scm:git:git://github.com/pmatiello/tui.git"
:developerConnection "scm:git:ssh://[email protected]:pmatiello/tui.git"
:tag (str "v" version)}})
(b/copy-dir {:src-dirs ["src"]
:target-dir class-dir})
(b/jar {:class-dir class-dir
:jar-file jar-file}))