Class VersionCatalogPlugin

java.lang.Object
org.gradle.api.plugins.catalog.VersionCatalogPlugin
All Implemented Interfaces:
Plugin<Project>

public abstract class VersionCatalogPlugin extends Object implements Plugin<Project>

A Plugin makes it possible to generate a version catalog, which is a set of versions and coordinates for dependencies and plugins to import in the settings of a Gradle build.

Since:
7.0
  • Field Details

    • GENERATE_CATALOG_FILE_TASKNAME

      public static final String GENERATE_CATALOG_FILE_TASKNAME
      The generate catalog file taskname.
      Since:
      7.0
      See Also:
    • GRADLE_PLATFORM_DEPENDENCIES

      public static final String GRADLE_PLATFORM_DEPENDENCIES
      The gradle platform dependencies.
      Since:
      7.0
      See Also:
    • VERSION_CATALOG_ELEMENTS

      public static final String VERSION_CATALOG_ELEMENTS
      The version catalog elements.
      Since:
      7.0
      See Also:
  • Constructor Details

  • Method Details

    • apply

      public void apply(Project project)
      Description copied from interface: Plugin
      Apply this plugin to the given target object.
      Specified by:
      apply in interface Plugin<Project>
      Parameters:
      project - The target object