Fork me on GitHub
#boot
<
2019-10-29
>
fabrao02:10:33

Hello all. What the difference btw uberjar from boot and from lein? I´ve never got success from boot.

fabrao02:10:17

(defproject baydlock "1.0.0"
  :description ""
  :dependencies [
                 [org.clojure/clojure "1.10.1"]

                 ;; Banco de dados
                 [org.clojure/java.jdbc "0.7.8"]
                 [com.microsoft.sqlserver/mssql-jdbc "7.0.0.jre8"]

                 [mount "0.1.16"]

                 ;; Log
                 [com.taoensso/timbre "4.10.0"]

                 ;; Configuração
                 [levand/immuconf "0.1.0"]

                 [overtone/at-at "1.2.0"]

                 ;; Encription
                 [lock-key "1.5.0"]]
  :source-paths ["src"]
  :main ^:skip-aot app.core
  :uberjar-name "baydlock.jar"
  :profiles {:uberjar {:aot :all}})

fabrao02:10:09

(set-env!
 :source-paths #{"src"}
 :dependencies '[
                 [org.clojure/clojure "1.10.1"]
                 [org.clojure/core.async "0.4.500"]
                 
                 ;; Banco de dados
                 [org.clojure/java.jdbc "0.7.8"]
                 [com.microsoft.sqlserver/mssql-jdbc "7.0.0.jre8"]

                 [mount "0.1.16"]

                 ;; Log
                 [com.taoensso/timbre "4.10.0"]                 
                 
                 ;; Configuração
                 [levand/immuconf "0.1.0"]

                 [overtone/at-at "1.2.0"]
                 
                 ;; Encription
                 [lock-key "1.5.0"]])

(task-options!
  pom {:project 'baydlock
       :version "1.0.0"}
  jar {:main 'app.core}
  aot {:all true})

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

nha09:10:42

Do you get an error running boot build? I haven't tried running this but it does look alright to me

borkdude10:10:37

we build uberjars with boot all the time, so it should definitely be possible to get it working

nha14:10:48

same - haven't had issues, and I've been building uberjars for a long time with boot