Skip to content

Commit f2d967a

Browse files
committed
fix: uberjar to contain compiled clj
1 parent 11545ce commit f2d967a

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

build.clj

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,8 @@
8585
(println "Built JAR file")
8686
opts)
8787

88-
(defn install [opts]
89-
(jar opts)
90-
(b/install {:basis basis
91-
:lib lib
92-
:version version
93-
:jar-file jar-file-name
94-
:class-dir jar-content})
95-
opts)
96-
9788
(defn java-test [_]
89+
#_{:clj-kondo/ignore [:inline-def]} ; TODO: extract to delayed top level form
9890
(def basis (b/create-basis {:project "deps.edn" :aliases [:junit]}))
9991

10092
(println "Running Java test cases")
@@ -119,7 +111,10 @@
119111
(println "Done"))
120112

121113
(defn uber [opts]
122-
(jar opts)
114+
(jar opts)
115+
(b/compile-clj {:basis basis
116+
:ns-compile '[stencil.process stencil.api]
117+
:class-dir jar-content})
123118
(b/uber {:class-dir jar-content
124119
:uber-file uber-file-name
125120
:basis basis

0 commit comments

Comments
 (0)