Class PolyglotVersionCatalogExtension

java.lang.Object
ca.stellardrift.build.configurate.catalog.PolyglotVersionCatalogExtension

public abstract class PolyglotVersionCatalogExtension extends Object
Register dependencies manifests
  • Constructor Details

    • PolyglotVersionCatalogExtension

      public PolyglotVersionCatalogExtension(org.gradle.api.initialization.Settings settings)
  • Method Details

    • from

      public void from(ConfigSource source, File file)
      Populate the default version catalog with the information from file.

      If file doesn't exist, this will be a no-op.

      Parameters:
      source - the source describing the config format to use
      file - the file to read
    • from

      public void from(ConfigSource source, Path file)
      Populate the default version catalog with the information from file.

      If file doesn't exist, this will be a no-op.

      Parameters:
      source - the source describing the config format to use
      file - the file to read
    • populateCatalog

      public void populateCatalog(String versionCatalog, ConfigSource source, File file)
      Populate a version catalog builder.

      If file doesn't exist, this will be a no-op.

      Parameters:
      versionCatalog - the name of the builder to populate
      source - the config source describing this version catalog
      file - the file to load
    • populateCatalog

      public void populateCatalog(String versionCatalog, ConfigSource source, Path file)
      Populate a version catalog builder.

      If file doesn't exist, this will be a no-op.

      Parameters:
      versionCatalog - the name of the builder to populate
      source - the config source describing this version catalog
      file - the file to load
    • populateCatalog

      public void populateCatalog(org.gradle.api.initialization.dsl.VersionCatalogBuilder versionCatalog, ConfigSource source, File file)
      Populate a version catalog builder.

      If file doesn't exist, this will be a no-op.

      Parameters:
      versionCatalog - the builder to populate
      source - the config source describing this version catalog
      file - the file to load
    • populateCatalog

      public void populateCatalog(org.gradle.api.initialization.dsl.VersionCatalogBuilder versionCatalog, ConfigSource source, Path file)
      Populate a version catalog builder.

      If file doesn't exist, this will be a no-op.

      Parameters:
      versionCatalog - the builder to populate
      source - the config source describing this version catalog
      file - the file to load