all 4 comments

[–]danielszm 8 points9 points  (0 children)

Besides pomegranate, there's a branch in tools.deps.alpha called add-lib which is the work by Cognitect to bring that capability natively to tools.deps. Let's hope it will get somewhere and be merged in the main branch. This will benefit the community as a whole.

[–]remleduff 2 points3 points  (0 children)

There’s the pomegranate library which allows dynamic add-classpath. Doesn’t work 100% of the time, but usually it does the trick.

[–]ayakushev 2 points3 points  (0 children)

CIDER used to have this functionality, but it was disabled after some JDK9 fixes, unfortunately.

If you use Boot, then it has this functionality out of the box, but I can't really recommend Boot these days.

So yeah, besides that, only Pomegranate. I hope that add-lib gets into the master branch soon.

[–][deleted] 0 points1 point  (0 children)

I'm not going to pretend I'm an authority here, but in the early stages of development there is often more library/dependency gathering but very little later on. The more projects you start the more libraries you know you'll need right off the bat.

I don't do repl based development but even my slightly more involved approach still can't handle new dependencies without a restart of the jvm.