mirror of https://github.com/status-im/timbre.git
Add encore version check
This commit is contained in:
parent
079cf82486
commit
2527e1f425
|
@ -6,6 +6,18 @@
|
||||||
(:import [java.util Date Locale]
|
(:import [java.util Date Locale]
|
||||||
[java.text SimpleDateFormat]))
|
[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
|
;;;; Public utils
|
||||||
|
|
||||||
(defn str-println
|
(defn str-println
|
||||||
|
|
Loading…
Reference in New Issue