Fork me on GitHub

how do you guys write core.clj and project.clj to be able to pack an uber jar?


:main phatam-api.core
(ns phatam-api.core
  (:require [ring.adapter.jetty :as jetty]
            [phatam-api.handler :as handler])

(defn -main
  "Start the Server"
  [& args]
  ;; start server
  (let [server-options {:host ""
                        :ssl? false
                        :join? false
                        :port 3000}]
    (jetty/run-jetty (handler/app) server-options))
  (prn "Server is running...."))

phatam-api.core but when I run lein uberjar
āžœ  phatam-api lein uberjar
Warning: specified :main without including it in :aot.
Implicit AOT of :main will be removed in Leiningen 3.0.0.
If you only need AOT for your uberjar, consider adding :aot :all into your
:uberjar profile instead.
Compiling phatam-api.core
2017-05-01 21:46:11.582:INFO::main: Logging initialized @1213ms
it is running quite long