Class CatalogueSource

java.lang.Object
io.github.joke.conventionalversion.CatalogueSource

public class CatalogueSource extends Object
How either mode reaches the calculated catalogue: the core's only entry point.

Takes a project rather than a settings object, because both modes end at a project. The settings plugin no longer touches the calculation at all - it applies the project plugin to every project, and the project plugin comes here.

  • Field Details

    • SERVICE_NAME

      @VisibleForTesting protected static final String SERVICE_NAME
      Named rather than derived, because the name is the identity registerIfAbsent matches on and every project has to land on the same one.
      See Also:
  • Constructor Details

    • CatalogueSource

      public CatalogueSource()
  • Method Details

    • catalogue

      public VersionCatalogue catalogue(org.gradle.api.Project project)
    • service

      @VisibleForTesting protected org.gradle.api.provider.Provider<VersionCatalogueService> service(org.gradle.api.Project project)
    • calculate

      @VisibleForTesting protected org.gradle.api.provider.Provider<VersionCatalogue> calculate(org.gradle.api.Project project)
      The project's own directory as the value source's parameter. Any directory inside the checkout yields the same answer - the reader resolves the repository root itself - and a project's own directory needs no access to another project's model.