-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathproject.clj
32 lines (26 loc) · 1000 Bytes
/
project.clj
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
(defproject pedestal "0.1.0-SNAPSHOT"
:paths ["src"]
:dependencies [[org.clojure/clojure "1.12.0"]
[io.pedestal/pedestal.service "0.7.2"]
[io.pedestal/pedestal.jetty "0.7.2"]
[com.github.clj-easy/graal-build-time "1.0.5"]]
:main simple.main
:uberjar-name "simple-main.jar"
:profiles {:uberjar {:aot :all}
:dev {:plugins [[lein-shell "0.5.0"]]}}
:aliases
{"native"
["shell"
"native-image"
"--no-fallback"
"--report-unsupported-elements-at-runtime"
"--no-server"
"--allow-incomplete-classpath"
"--initialize-at-build-time"
"--enable-url-protocols=http,https"
"--features=clj_easy.graal_build_time.InitClojureClasses"
"-Dio.pedestal.log.defaultMetricsRecorder=nil"
"-jar" "./target/${:uberjar-name:-${:name}-${:version}-standalone.jar}"
"-H:ReflectionConfigurationFiles=reflect-config.json"
"-H:Name=./target/${:name}"]
"run-native" ["shell" "./target/${:name}"]})