-
Notifications
You must be signed in to change notification settings - Fork 5
/
project.clj
49 lines (43 loc) · 1.66 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
(defn windows? []
(-> (System/getProperty "os.name")
(clojure.string/starts-with? "Windows")))
(defn native-image-args []
(filter identity
[(when (System/getenv "HICCUP_CLI_STATIC") "--static")
"--allow-incomplete-classpath"
"--enable-url-protocols=http,https"
"--initialize-at-build-time"
"--no-fallback"
"--no-server"
"--report-unsupported-elements-at-runtime"
"--verbose"
"-Dclojure.compiler.direct-linking=true"
"-H:+ReportExceptionStackTraces"
"-H:EnableURLProtocols=https,http"]))
(defn native-image-output []
(if (windows?)
"..\\hiccup-cli"
"../hiccup-cli"))
(defproject hiccup-cli "0.1.0-SNAPSHOT"
:description "Command line tool to convert HTML to Hiccup"
:url "https://github.com/kwrooijen/hiccup-cli"
:min-lein-version "2.0.0"
:dependencies [[org.clojure/clojure "1.10.2-rc3"]
[org.clojure/clojurescript "1.9.293"]
[kwrooijen/hickory "0.7.1"]
[org.clojure/tools.cli "1.0.194"]
[org.jsoup/jsoup "1.13.1"]
[org.clojure/tools.reader "1.3.4"]
[zprint "1.1.1"]]
:plugins [[io.taylorwood/lein-native-image "0.3.1"]]
:main ^:skip-aot hiccup-cli.core
:resource-paths ["resources"]
:source-paths ["src"]
:native-image {:name #=(native-image-output)
:opts #=(native-image-args)}
:uberjar-name "hiccup-cli-main.jar"
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:profiles
{:uberjar {:aot :all
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:resource-paths ["resources"]}})