example
workspace with the top namespace se.example
by using the create workspace command (create w
works as well as create workspace
). Make sure you execute the command outside a git repository:main
branch. By giving branch:BRANCH-NAME
the workspace can be created in a different branch, e.g.:Note: In version0.2.13-alpha
and earlier, the workspace was automatically initiated as a git repository when we created a workspace, but from0.2.14-alpha
and later, we have to pass in:commit
to get the same behaviour. We will talk more about this in theGit
section.
base
is a building block that exposes a public API to external systems. A component
is a building block for encapsulating a specific domain or part of the system. A project
specifies our deployable artifacts and what components, bases, and libraries they contain. Finally, we have the development
project (development
+ deps.edn
) that we use to work with the code in one place.bases
, components
and projects
directories also contain a .keep
file, which is added to prevent git from deleting these directories, and can be removed as soon as we add something to them.workspace.edn
file looks like this:deps.edn
like this:poly
tool managed to set the latest sha for the :poly
alias by taking it from the master
branch in this repository. We can instruct it to go and get it by passing in :latest-sha
::latest-sha
argument will tell the tool to go out and find the latest SHA from the Polylith repo and populate the :latest-sha
attribute, which would otherwise not be set.ws
command works or what all the settings are for, be patient, everything will soon be covered in detail.