version-catalog-poc
Tags:
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
settings.gradle.kts - the
build-logicincluded build (similar tobuildSrc, really) - the
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:
- the
with-settingsversion is the reference for the settings DSL: it doesn't try to share anything but rather duplicates everything in settings - the
with-settings-plugindemonstrates sharing versions via a Settings plugin - the
with-precompiled-settings-plugindoes the same using a precompiled settings plugin - the
with-tomlversion shows how to do the same using the conventional TOML file - the
with-published-catalogdemonstrates a similar thing but this time with a "published TOML" file
