Skip to content

Commit

Permalink
Performance optimizations and GraalVM experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniils Petrovs committed Sep 19, 2021
1 parent 3347c1b commit 2ff9197
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,27 @@
:dependencies [[org.clojure/clojure "1.10.1"]
[etaoin "0.4.5"]
[org.clojure/tools.cli "1.0.206"]]
:native-image {:name "atoss-native"
:opts ["--report-unsupported-elements-at-runtime" ;; ignore native-image build errors
"-H:+ReportExceptionStackTraces"
"--allow-incomplete-classpath"
"--no-server"
"--no-fallback"
"--initialize-at-run-time=org.apache.http.impl.auth.NTLMEngineImpl"
"--initialize-at-run-time=clojure.core.server,clojure.lang"
"--initialize-at-build-time=clojure.spec.gen.alpha,clojure,clojure.core.server"
"--enable-url-protocols=http,https"
]}
:target-path "target/%s"
:jar-name "atoss-cli.jar"
:uberjar-name "atoss-cli-standalone.jar"

:profiles {:uberjar {:aot :all}}
:plugins [[lein-cljfmt "0.8.0"]]
:global-vars {*warn-on-reflection* true}

:profiles {:uberjar {:aot :all
:native-image {:jvm-opts ["-Dclojure.compiler.direct-linking=true"]}}
}
:plugins [[lein-cljfmt "0.8.0"]
[io.taylorwood/lein-native-image "0.3.1"]]
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:repl-options {:init-ns atoss-cli.core})

0 comments on commit 2ff9197

Please sign in to comment.