Skip to content

Commit

Permalink
add progress in lein release
Browse files Browse the repository at this point in the history
  • Loading branch information
saitouena committed Jul 29, 2019
1 parent 6ab82cb commit 7e1f7bb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/leiningen/release.clj
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,12 @@ bump. If none is given, it defaults to :patch."
([project] (release project *level*))
([project level]
(binding [*level* (if level (read-string level))]
(doseq [task (:release-tasks project)]
(let [current-project (project/init-project (project/read))]
(main/resolve-and-apply current-project task))))))
(let [release-tasks (:release-tasks project)
task-count (count release-tasks)]
(doseq [[i task] (map vector (range 1 (inc task-count)) release-tasks)]
(apply main/info (concat ["[" i "/" task-count "] Running lein"] task))
(let [current-project (project/init-project (project/read))]
(main/resolve-and-apply current-project task)))))))

;; support existing release plugin:
;; https://github.com/technomancy/leiningen/issues/1544
Expand Down

0 comments on commit 7e1f7bb

Please sign in to comment.