try to get uberjar build running

This commit is contained in:
Clemens Geibel 2021-03-08 10:45:19 +01:00
parent d6e99a5230
commit 76ed6b6e7b
2 changed files with 12 additions and 3 deletions

View file

@ -5,6 +5,7 @@
:url "https://www.apache.org/licenses/LICENSE-2.0.html"}
:dependencies [[org.clojure/clojure "1.10.0"]
[aero "1.1.6"]
[expound "0.8.4"]
[clj-commons/clj-yaml "0.7.106"]]
:source-paths ["src/main/cljc"
"src/main/clj"]
@ -15,4 +16,12 @@
["releases" :clojars]]
:profiles {:test {:test-paths ["src/test/cljc"]
:resource-paths ["src/test/resources"]
:dependencies [[dda/data-test "0.1.1"]]}})
:dependencies [[dda/data-test "0.1.1"]]}
:uberjar {:source-paths ["src/main/clj"]
:resource-paths ["src/main/resources"]
:aot :all
:main dda.k8s-mastodon-bot.uberjar
:uberjar-name "k8s-mastodon-bot-standalone.jar"
:dependencies [[org.clojure/tools.cli "1.0.194"]
[ch.qos.logback/logback-classic "1.3.0-alpha5"]
[org.slf4j/jcl-over-slf4j "2.0.0-alpha1"]]}})

View file

@ -1,7 +1,7 @@
(ns dda.k8s-mastodon-bot.uberjar
(:require
[clojure.spec.alpha :as s]
[dda.k8s-mastodon-bot.core :as core])
[dda.k8s-mastodon-bot.core :as core]))
(def usage
@ -19,4 +19,4 @@
(some #(= "-h" %) options)
(print usage)
:default
(generate config auth))))))
(core/generate config auth))))))