Compare commits

...

5 commits

Author SHA1 Message Date
Michiel Borkent
f792c98784 Merge branch 'master' into init-at-build-time 2021-06-30 12:06:34 +02:00
Michiel Borkent
524fc4d66c Merge branch 'master' into init-at-build-time 2021-06-21 22:32:43 +02:00
Michiel Borkent
e66670a4f9 Add comment [skip ci] 2021-06-21 15:00:33 +02:00
Michiel Borkent
15e2fc7cbe fix 2021-06-21 14:52:22 +02:00
Michiel Borkent
207e22a6fa explicit 2021-06-21 14:38:15 +02:00

View file

@ -38,6 +38,9 @@ fi
BABASHKA_BINARY=${BABASHKA_BINARY:-"bb"} BABASHKA_BINARY=${BABASHKA_BINARY:-"bb"}
# the initialize-at-build-time flag is generated with
# (->> (map ns-name (all-ns)) (remove #(str/starts-with? % "clojure")) (map #(str/split (str %) #"\.")) (keep butlast) (map #(str/join "." %)) distinct (map munge) (cons "clojure"))
args=( "-jar" "$BABASHKA_JAR" args=( "-jar" "$BABASHKA_JAR"
"-H:Name=$BABASHKA_BINARY" "-H:Name=$BABASHKA_BINARY"
"-H:+ReportExceptionStackTraces" "-H:+ReportExceptionStackTraces"
@ -45,7 +48,8 @@ args=( "-jar" "$BABASHKA_JAR"
"-H:IncludeResources=BABASHKA_VERSION" "-H:IncludeResources=BABASHKA_VERSION"
"-H:IncludeResources=SCI_VERSION" "-H:IncludeResources=SCI_VERSION"
"-H:ReflectionConfigurationFiles=reflection.json" "-H:ReflectionConfigurationFiles=reflection.json"
"--initialize-at-build-time" "--initialize-at-build-time=clojure,sci.impl,selmer,babashka.nrepl,babashka.impl.clojure.java,babashka.impl,rewrite_clj.node,bencode,rewrite_clj.parser,babashka.impl.clojure,org.httpkit,rewrite_clj.custom_zipper,rewrite_clj.zip,borkdude.graal,babashka.nrepl.impl,babashka.pods,cognitect,babashka,edamame.impl,cheshire,rewrite_clj,hiccup,sci,borkdude,flatland.ordered,babashka.pods.impl,clj_yaml,babashka.impl.clojure.core,datascript,hf.depstar,babashka.impl.tools,sci.addons,babashka.impl.clojure.test"
"--initialize-at-build-time=com.fasterxml.jackson"
#"-H:+PrintAnalysisCallTree" #"-H:+PrintAnalysisCallTree"
# "-H:+DashboardAll" # "-H:+DashboardAll"
# "-H:DashboardDump=reports/dump" # "-H:DashboardDump=reports/dump"
@ -59,7 +63,7 @@ args=( "-jar" "$BABASHKA_JAR"
"--no-fallback" "--no-fallback"
"--no-server" "--no-server"
"--report-unsupported-elements-at-runtime" "--report-unsupported-elements-at-runtime"
"--initialize-at-run-time=org.postgresql.sspi.SSPIClient" # "--initialize-at-run-time=org.postgresql.sspi.SSPIClient"
"--initialize-at-run-time=org.httpkit.client.ClientSslEngineFactory\$SSLHolder" "--initialize-at-run-time=org.httpkit.client.ClientSslEngineFactory\$SSLHolder"
"--native-image-info" "--native-image-info"
"--verbose" "--verbose"