Is there anyway around these super slow build times for uberjars? I ran clojure -T:build ci on a fresh project and it's taking close to ~3 min to produce a jar.
For another project with ~15 dependencies, it takes more like 5 minutes. I think most of the build time is spent on IO of deps, so adding code won't increase the build time by much but it's still kind of a long time to wait for a jar.
What is your disk setup for your working env? I build much more complex uberjars and they run a lot faster than that.
Like physical disk? It's an SSD. I'm also running in WSl2.
Where are your projects? Windows or WSL2?
Yeah they're on WSL2 running on an ubuntu workspace.
I'm on Windows and run everything Clojure-related (except VS Code) on WSL2 and all my project files are on WSL2 as well.
If you're seeing those slow times, my first suspicion is you have your projects on Windows and you're running clojure on WSL2... which would be very, very slow.
hahahahaha right you are, right you are.
That's exactly what's happening.
Move all your projects to WSL2. Never cross the file system boundary (in either direction).
VS Code runs a server process on WSL2 which is how it deals with everything and stays fast: the critical extensions all run on the WSL2.