boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
fabrao 2019-10-29T02:49:33.010700Z

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

fabrao 2019-10-29T02:50:17.010900Z

(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}})

fabrao 2019-10-29T02:51:09.011300Z

(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)))

2019-10-29T09:25:42.012200Z

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

borkdude 2019-10-29T10:10:37.012600Z

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

2019-10-29T14:25:48.013200Z

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