The project consists of a single
lib library, but we imagine that we want to share some dependencies between the main library and build logic.
In this case, the "common" dependencies are actually test dependencies.
The project consists of:
- the root project, declaring
build-logicincluded build (similar to
libproject for the actual library code
What to do
We basically want to share a catalog between build logic and the main build. This is a simplified version of what you would have to do to share a catalog between different components in an organization.
In this repository, you will need to take a look at 4 different branches to explore the options we have:
with-settingsversion is the reference for the settings DSL: it doesn't try to share anything but rather duplicates everything in settings
with-settings-plugindemonstrates sharing versions via a Settings plugin
with-precompiled-settings-plugindoes the same using a precompiled settings plugin
with-tomlversion shows how to do the same using the conventional TOML file
with-published-catalogdemonstrates a similar thing but this time with a "published TOML" file