-
Notifications
You must be signed in to change notification settings - Fork 1
/
bb.edn
37 lines (30 loc) · 1.47 KB
/
bb.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{:tasks
{:requires [[babashka.fs :as fs]]
test {:doc "Run tests"
:task (apply clojure "-A:swipl-jpl -M:test" *command-line-args*)}
nrepl {:doc "Start REPL"
:task (shell "clj" "-A:swipl-jpl -M:nrepl")}
run-main {:doc "Run main"
:task (apply clojure
"-A:swipl-jpl -M -m l4-lp.main"
*command-line-args*)}
uber {:doc "Build uberjar"
:task (clojure "-A:swipl-jpl -T:build uber")}
uber-github-workflow-ubuntu
{:doc "Build uberjar on Ubuntu systems as part of a Github workflow"
:task (clojure "-A:swipl-jpl-github-workflow-ubuntu -T:build uber")}
#_native-image #_{:doc "Builds native image"
:depends [uber]
:task
(shell {:extra-env
{"LD_LIBRARY_PATH"
"/usr/lib/swipl/lib/x86_64-linux/:$LD_LIBRARY_PATH"}}
"native-image"
"-jar" "target/l4-lp-0.0.1-standalone.jar"
"--no-fallback"
"-H:ReflectionConfigurationFiles=reflect-config.json"
"-H:Name=l4-lp"
;; https://clojurians-log.clojureverse.org/graalvm/2022-05-19
"--features=clj_easy.graal_build_time.InitClojureClasses"
"--initialize-at-build-time=com.fasterxml.jackson"
"target/l4_lp")}}}