Add encore version check

This commit is contained in:
Peter Taoussanis 2015-02-16 12:54:46 +07:00
parent 079cf82486
commit 2527e1f425
1 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,18 @@
(:import [java.util Date Locale]
[java.text SimpleDateFormat]))
;;;; Encore version check
(let [min-encore-version 1.21] ; Let's get folks on newer versions here
(if-let [assert! (ns-resolve 'taoensso.encore 'assert-min-encore-version)]
(assert! min-encore-version)
(throw
(ex-info
(format
"Insufficient com.taoensso/encore version (< %s). You may have a Leiningen dependency conflict (see http://goo.gl/qBbLvC for solution)."
min-encore-version)
{:min-version min-encore-version}))))
;;;; Public utils
(defn str-println