Fork me on GitHub
#ring-swagger
<
2017-05-01
>
giaosudau14:05:43

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

giaosudau14:05:25

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

(defn -main
  "Start the Server"
  [& args]
  ;; start server
  (let [server-options {:host "127.0.0.1"
                        :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