Project
Projects configure Polylith's deployable artifacts.
Last updated
Projects configure Polylith's deployable artifacts.
Last updated
A project is the result of combining one base (or in rare cases several bases) with multiple components and libraries.
The artifacts that are built based on the projects are the end goal of the Polylith architecture, which we deploy in our test, staging and production environments.
Each project lives in a separate directory under the projects
directory, where it has a configuration file:
The configuration file lists all included bricks and project level libraries (brick level libraries are implicitly included):
Example projects can be found in the RealWorld example app, the User Manager example app, and in the Polylith Tool.
Some languages, like Clojure, support having more than one src
directory out of the box, or support including "projects" as in the example above, while other languages may need a plugin, like the build-helper-maven-plugin.
It's almost like magic, because all we have to do is to list all our building blocks used in e.g. a service, and everything will automatically "connect" without the need of dependency injection, annotations or any other "magic"! Here is how that looks like in the User Manager example app.
This is also why the Polylith architecture can be used without tooling support and still give us most of its benefits.