From 1c0e1992a27d68bbb56151b847955a65a5fd0118 Mon Sep 17 00:00:00 2001 From: Gabriel Silk Date: Mon, 15 Oct 2012 23:30:28 -0700 Subject: [PATCH] project.clj: add leiningin version check --- project.clj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/project.clj b/project.clj index e9c602ccb..f3625e0c8 100644 --- a/project.clj +++ b/project.clj @@ -1,3 +1,8 @@ +(def lein-version (System/getenv "LEIN_VERSION")) +(if-not (re-find #"^1\..*$" lein-version) + (do (println (str "ERROR: requires Leiningen 1.x but you are using " lein-version)) + (System/exit 1))) + (defproject storm "0.8.2-wip11" :source-path "src/clj" :test-path "test/clj" @@ -36,4 +41,3 @@ :extra-classpath-dirs ["src/ui"] :aot :all ) -