From 2527e1f42505c2545cb09d8282df8d88f6e5659c Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Mon, 16 Feb 2015 12:54:46 +0700 Subject: [PATCH] Add encore version check --- src/taoensso/timbre.clj | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/taoensso/timbre.clj b/src/taoensso/timbre.clj index 487f60a..3b935b4 100644 --- a/src/taoensso/timbre.clj +++ b/src/taoensso/timbre.clj @@ -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