Package org.gradle.api.artifacts

## Interface VersionCatalog

- All Superinterfaces:
    `Named`

      @Incubating
      @NonNullApi
      public interface VersionCatalog
      extends Named

  Provides access to a version catalog. Unlike generated extension classes for catalogs, there is no guarantee that the requested aliases exist so you must check existence on the returned optional values.
  Since:
    7.0

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.gradle.api.Named

      `Named.Namer`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Optional<Provider<ExternalModuleDependencyBundle>>` | `findBundle​(String bundle)` | Returns the dependency provider for the corresponding bundle.
    `Optional<Provider<MinimalExternalModuleDependency>>` | `findDependency​(String alias)` | Returns the dependency provider for the corresponding alias.
    `Optional<VersionConstraint>` | `findVersion​(String name)` | Returns the version constraint with the corresponding name in the catalog.

    - ### Methods inherited from interface org.gradle.api.Named

      `getName`

- - ### Method Detail

    - #### findDependency

          Optional<Provider<MinimalExternalModuleDependency>> findDependency​(String alias)

      Returns the dependency provider for the corresponding alias.
      Parameters:
        `alias` - the alias of the dependency

    - #### findBundle

          Optional<Provider<ExternalModuleDependencyBundle>> findBundle​(String bundle)

      Returns the dependency provider for the corresponding bundle.
      Parameters:
        `bundle` - the alias of the bundle

    - #### findVersion

          Optional<VersionConstraint> findVersion​(String name)

      Returns the version constraint with the corresponding name in the catalog.
      Parameters:
        `name` - the name of the version