        :version "2.5.8-SNAPSHOT"
        :description "An IDE for Clojure"
        :url "https://github.com/oakes/Nightcode"
-       :license {"Public Domain" "http://unlicense.org/UNLICENSE"}
-       :dependencies (->> "deps.edn"
-                          slurp
-                          edn/read-string
-                          :deps
-                          (reduce
-                            (fn [deps [artifact info]]
-                              (if-let [version (:mvn/version info)]
-                                (conj deps
-                                  (transduce cat conj [artifact version]
-                                    (select-keys info [:scope :exclusions])))
-                                deps))
-                            []))}
+       :license {"Public Domain" "http://unlicense.org/UNLICENSE"}}
   push {:repo "clojars"}
   aot {:namespace '#{nightcode.core
                      nightcode.lein}}

(set-env!
  :dependencies '[[adzerk/boot-cljs "2.1.4" :scope "test"]
                  [javax.xml.bind/jaxb-api "2.3.0" :scope "test"]
                  [seancorfield/boot-tools-deps "0.1.4" :scope "test"]
                  [orchestra "2017.11.12-1" :scope "test"]]
  :repositories (conj (get-env :repositories)
                  ["clojars" {:url "https://clojars.org/repo/"
                              :username (System/getenv "CLOJARS_USER")
                              :password (System/getenv "CLOJARS_PASS")}]))

(require
  '[orchestra.spec.test :refer [instrument]]
  '[clojure.edn :as edn]
  '[adzerk.boot-cljs :refer [cljs]]
  '[clojure.java.io :as io]
  '[boot-tools-deps.core :refer [deps]])

(task-options!
  sift {:include #{#"\.jar$"}}

      (.renameTo (io/file "target/public/codemirror.js") (io/file "resources/public/codemirror.js")))))

(deftask local []
  (comp (pom) (jar) (install)))

(deftask deploy []
  (comp (pom) (jar) (push)))

