 (def plugin-zip-name
   (str "target/cmr-es-spatial-plugin-" version ".zip"))
 
-(defproject nasa-cmr/cmr-es-spatial-plugin version
+(defproject nasa-cmr/cmr-es-spatial-plugin "0.1.0-SNAPSHOT"
   :description "A Elastic Search plugin that enables spatial search entirely within elastic."
   :url "***REMOVED***projects/CMR/repos/cmr-es-spatial-plugin/browse"
   :dependencies [[org.clojure/clojure "1.6.0"]

  :plugins [[lein-shell "0.4.0"]
            [lein-test-out "0.3.1"]]

  :global-vars {*warn-on-reflection* true
                *assert* false}

  ;; This is the minimum that must be AOT'd for running in an embeded elastic. AOT :all for installing
  ;; in an elastic vm.

(def version
  "Parses the version out of this file to use in names of referenced files"
  (let [project-clj-lines (-> "project.clj" slurp (clojure.string/split #"\n"))]
    (-> (filter (partial re-find #"^\(defproject") project-clj-lines)
        first
        (clojure.string/split #" ")
        last
        (clojure.string/replace "\"" ""))))

(def uberjar-name
  (str "target/cmr-es-spatial-plugin-" version "-standalone.jar"))
