shadow-cljs and lein ring uberjar

29 views
Skip to first unread message

Scott Klarenbach

unread,
Jun 22, 2020, 3:01:35 PM6/22/20
to ClojureScript
When I run "lein ring uberjar", after it builds the jar file it triggers the shadow-cljs :app build and rebuilds all client code.

I was wanting it to just build the jar file, since the client build is triggered using lein prod.

Is this default behavior or have I screwed something up?

Thomas Heller

unread,
Jun 24, 2020, 7:01:44 AM6/24/20
to ClojureScript
Hard to say what you are doing without seeing the config. Your config is doing this, neither lein or shadow-cljs will do this on their own.

I typically recommend keeping things separate since that make things much easier to understand and debug.

shadow-cljs release app && lein ring uberjar

lein or ring don't need to do anything with CLJS other than taking the files shadow-cljs produced and putting them into the .jar they create. That typically happens automatically if you output to some folder on your classpath (eg. resources/public/js).
Reply all
Reply to author
Forward
0 new messages