File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 13
13
(defn publish []
14
14
(let [; ; commit count + 1 for README update
15
15
cc (inc (shared/git-count-revs ))
16
- tag (str " Release-" shared/version)]
16
+ tag (str " Release-" ( shared/version cc) )]
17
17
(replace-version " README.md" shared/base-version cc)
18
18
(replace-version " project.clj" shared/base-version cc)
19
19
(shell " git add README.md project.clj" )
Original file line number Diff line number Diff line change 4
4
[clojure.tools.build.api :as b]))
5
5
6
6
(def lib 'org.clj-commons /clj-http-lite )
7
- (def version shared /version )
7
+ (def version ( shared/version ( shared/git-count-revs )) )
8
8
(def class-dir " target/classes" )
9
9
(def basis (b/create-basis {:project " deps.edn" }))
10
10
(def jar-file (format " target/%s-%s.jar" (name lib) version))
Original file line number Diff line number Diff line change 10
10
Integer/parseInt))
11
11
12
12
(def base-version (edn/read-string (slurp " version.edn" )))
13
- (def version (str base-version " ." (git-count-revs )))
13
+
14
+ (defn version [revs]
15
+ (str base-version " ." revs))
You can’t perform that action at this time.
0 commit comments