Fork me on GitHub
#polylith
<
2023-12-02
>
Matheus Moreira12:12:11

Hello! I am trying polylith for the first time and am a bit confused about how to manage external libraries. When I add a new lib, should I declare it on development's deps.edn and also a component's deps.edn? Maybe this is a silly question but what is confusing me is that I am using Intellij + Cursive and the IDE resolves classes based on the development's project classpath, not the individual component. Thanks for the help.

tengstrand13:12:18

> When I add a new lib, should I declare it on development's deps.edn and also a component's deps.edn? If you switch to the latest version of Cursive, then you can use the :local-root syntax in the development's ./deps.edn file when you specify your bricks. Then it's enough to specify dependencies in each brick's deps.edn file. Make sure you follow the instructions for the https://cljdoc.org/d/polylith/clj-poly/0.2.18-SNAPSHOT/doc/development#idea-cursive (this is the new documentation that you can use if you work from the master branch).

👍 1
Matheus Moreira18:12:37

Great, thanks! Let me try it!

👍 1