tools-build

kardan 2021-12-02T12:07:17.293300Z

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) 2021-12-02T12:54:36.296200Z

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) 2021-12-02T12:55:29.297700Z

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

Alex Miller (Clojure team) 2021-12-02T12:56:37.299500Z

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