On Polylith (from Amazing Ideas thread)

Also worth updating the note about libraries on the issue-66 branch as a new enhancement just dropped this evening (which was prompted by my usermanager example):

Libraries are specified in deps.edn in each component, base, and project:

Entity Type Location
Components src components/COMPONENT-DIR > deps.edn > :deps
test components/COMPONENT-DIR > deps.edn > :aliases > :test > :extra-deps
Bases src bases/BASE-DIR > deps.edn > :deps
test bases/BASE-DIR > deps.edn > :aliases > :test > :extra-deps
Dev project src ./deps.edn > :aliases > :dev > :extra-deps
test ./deps.edn > :aliases > :test > :extra-deps
Other projects src projects/PROJECT-DIR > deps.edn > :deps
test projects/PROJECT-DIR > deps.edn > :aliases > :test > :extra-deps

The tool parses each deps.edn file and looks for library dependencies, which are then used by the libs and test commands.

1 Like