    [clojure.java.io :as io]
    [clojure.string :as str]
    [cmr.common.lifecycle :as l]
-   [cmr.common.log :refer (debug info warn error)]
    [cmr.umm-spec.migration.version-migration :as vm]
    [cmr.umm-spec.umm-json :as umm-json]
    [cmr.umm-spec.versioning :as umm-version])

(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

  "Defines the path to the UMM schema version config file within the preview gem."
  "gems/cmr_metadata_preview-0.0.1/.umm-version")

(defn- create-jruby-runtime
  "Creates and initializes a JRuby runtime."
  []
