   "Defines the path to the UMM schema version config file within the preview gem."
   "gems/cmr_metadata_preview-0.0.1/.umm-version")
 
-(def default-preview-gem-umm-version
-  "Default preview gem UMM schema version in case preview gem is mis-configured."
-  "1.8")
-
 (defn- create-jruby-runtime
   "Creates and initializes a JRuby runtime."
   []

(defn- get-preview-gem-umm-version
  "Get the UMM schema version that is defined in preview gem."
  []
  (try
    (-> preview-gem-umm-version-config-file
        io/resource
        slurp
        str/trim)
    (catch Exception e
      (error "Failed to parse preview gem UMM version, will use the default version:"
             default-preview-gem-umm-version
             (.printStackTrace e)))))

;; Allows easily evaluating Ruby code in the Clojure REPL.
(comment

   [clojure.java.io :as io]
   [clojure.string :as str]
   [cmr.common.lifecycle :as l]
   [cmr.umm-spec.migration.version-migration :as vm]
   [cmr.umm-spec.umm-json :as umm-json]
   [cmr.umm-spec.versioning :as umm-version])
