Class VersionValueSource

java.lang.Object
io.github.joke.conventionalversion.VersionValueSource
All Implemented Interfaces:
org.gradle.api.provider.ValueSource<VersionCatalogue, VersionValueSource.Parameters>

public abstract class VersionValueSource extends Object implements org.gradle.api.provider.ValueSource<VersionCatalogue, VersionValueSource.Parameters>
Reads git and release-please's configuration, then calculates every package's version.

A ValueSource rather than a direct call during configuration: Gradle re-executes one on every build specifically to decide whether a cached entry is still valid. Reading directly would bake the answer into the configuration cache entry, and the build would keep publishing a version derived from an older commit - or from an older configuration - until something unrelated invalidated the entry.

Its only parameter is the directory to start from. Everything else that changes a number is read from release-please's own files, which is the point: there is no second place to configure it.