Fork me on GitHub
#polylith
<
2022-01-11
>
maxt12:01:22

Hi! One thing I haven’t understood from looking at the docs and example projects: am I supposed to put lib dependencis in both bases/components deps and in the root deps.edn under the dev profile?

tengstrand13:01:49

To get the IDE integration to work with Cursive, you need to add components as :extra-paths for the :dev alias. If you use another IDE, it should work adding them as :extra-depsby specifying each component as :local-root for the :dev alias. If you use Cursive, you need to specify the test directories for each component also in the :test alias as`:extra-paths` to get the IDE integration to work. I don’t think you have to do that if you use e.g. Calva, because it uses another way of understanding the code than Cursive. So if any developer in your team(s) use Cursive, then you probably have to add the components as :extra-paths in deps.edn, otherwise adding them as :extra-deps should be enough.

maxt15:01:40

Ah, interesting! I’m using Calva right now, so I will try the local-root way

maxt15:01:52

Yes, that seems to work great. It’s a much nicer setup imo. Too bad with Cursive…

tengstrand18:01:05

Yes, I totally agree!