Skip to content

Commit

Permalink
Merge pull request technomancy#2605 from saitouena/print-progress-in-…
Browse files Browse the repository at this point in the history
…lein-release

print progress in lein release
  • Loading branch information
technomancy authored Aug 3, 2019
2 parents c960c23 + 8f0f0b0 commit 84e99a5
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 "[" 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 84e99a5

Please sign in to comment.