Display progress on artifact signing, closes #1892
This commit is contained in:
parent
5433965fc8
commit
f822bdacf1
1 changed files with 15 additions and 2 deletions
|
@ -100,6 +100,20 @@
|
||||||
#(str (or % "jar") ".asc")))
|
#(str (or % "jar") ".asc")))
|
||||||
(sign artifact-file opts)})
|
(sign artifact-file opts)})
|
||||||
|
|
||||||
|
(defn signatures-for-artifacts
|
||||||
|
"Creates and returns the list of signatures for the artifacts needed to be
|
||||||
|
signed."
|
||||||
|
[artifacts sig-opts]
|
||||||
|
(let [total (count artifacts)]
|
||||||
|
(println "Need to sign" total "files with GPG")
|
||||||
|
(doall
|
||||||
|
(map-indexed
|
||||||
|
(fn [idx [coords artifact-file :as artifact]]
|
||||||
|
(printf "[%d/%d] Signing %s with GPG\n" (inc idx) total artifact-file)
|
||||||
|
(flush)
|
||||||
|
(signature-for-artifact artifact sig-opts))
|
||||||
|
artifacts))))
|
||||||
|
|
||||||
(defn sign-for-repo?
|
(defn sign-for-repo?
|
||||||
"Generally sign artifacts for this repo?"
|
"Generally sign artifacts for this repo?"
|
||||||
[repo]
|
[repo]
|
||||||
|
@ -118,8 +132,7 @@
|
||||||
{[:extension "pom"] (pom/pom project)})
|
{[:extension "pom"] (pom/pom project)})
|
||||||
sig-opts (signing-opts project repo)]
|
sig-opts (signing-opts project repo)]
|
||||||
(if (and signed? (not (.endsWith (:version project) "-SNAPSHOT")))
|
(if (and signed? (not (.endsWith (:version project) "-SNAPSHOT")))
|
||||||
(reduce merge artifacts (map #(signature-for-artifact % sig-opts)
|
(reduce merge artifacts (signatures-for-artifacts artifacts sig-opts))
|
||||||
artifacts))
|
|
||||||
artifacts)))
|
artifacts)))
|
||||||
|
|
||||||
(defn warn-missing-metadata [project]
|
(defn warn-missing-metadata [project]
|
||||||
|
|
Loading…
Reference in a new issue