Fork me on GitHub
#tools-build
<
2021-12-02
>
kardan12:12:17

Hi, this is probably not the forum but not sure which channel to ask in. We have a small Clojure & ClojureScript web app running in Tomcat. The project managed to end up with a deps.edn for use with Shadow-cljs & lein for the backend to essentially build an uberwar. Is there a way to build an uberwar with tools-build or in some other way using deps.edn? My knowledge of “wars” are very limited so maybe I’m missing something.

Alex Miller (Clojure team)12:12:36

In the broadest sense, sure. A war is just a jar with a well known structure. tools.build can jar up a directory structure. So if you can copy the right stuff into that structure, you're there

Alex Miller (Clojure team)12:12:29

I believe a war is conceptually like an uberjar except the jars are copied in rather than exploded

Alex Miller (Clojure team)12:12:37

So we could have a task to do that from a basis. Would be great to have this in http://ask.clojure.org and I can make a ticket from there

👍 1