(set-env!
  :source-paths #{"src"}
  :resource-paths #{"resources"}
  :dependencies '[[org.clojure/clojure "1.7.0"]
                  [prismatic/schema "0.4.3"]])

(require
  '[net.sekao.nightcode.core :as app])

(task-options!
  pom {:project 'nightcode
       :version "1.0.0-SNAPSHOT"}
  aot {:namespace '#{net.sekao.nightcode.core}}
  jar {:main 'net.sekao.nightcode.core
       :manifest {"Description" "An IDE for Clojure and ClojureScript"
                  "Url" "https://github.com/oakes/Nightcode"}})

(deftask run []
  (comp
    (aot)
    (with-pre-wrap fileset
      (app/-main)
      fileset)))

(deftask build []
  (comp (aot) (pom) (uber) (jar)))

(set-env!
  :source-paths #{"src"}
  :resource-paths #{"resources"}
  :dependencies '[[org.clojure/clojure "1.7.0"]
                  [prismatic/schema "0.4.3"]])

(task-options!
  pom {:project 'nightcode
       :version "1.0.0-SNAPSHOT"}
  aot {:namespace '#{net.sekao.nightcode.core}}
  jar {:main 'net.sekao.nightcode.core
       :manifest {"Description" "An IDE for Clojure and ClojureScript"
                  "Url" "https://github.com/oakes/Nightcode"}})

(deftask run []
  (comp
    (aot)
    (with-pre-wrap fileset
      (require '[net.sekao.nightcode.core :refer [-main]])
      ((resolve '-main))
      fileset)))

(deftask build []
  (comp (aot) (pom) (uber) (jar)))

Move require to fix compile error
Move require to fix compile error

oakes/Nightcode,oakes/Nightcode