gradle
8.5

# VersionCatalogBuilder

interface VersionCatalogBuilder : Named(source)

A version catalog builder. Dependencies defined via this model will trigger the generation of accessors available in build scripts.

## Types

LibraryAliasBuilder
Link copied to clipboard
interface LibraryAliasBuilder
Allows configuring the version of a library
PluginAliasBuilder
Link copied to clipboard
interface PluginAliasBuilder
Allows configuring the version of a plugin

## Functions

bundle
Link copied to clipboard
abstract fun bundle(alias: String, aliases: List<String>)
Declares a bundle of dependencies.
from
Link copied to clipboard
abstract fun from(dependencyNotation: Any)
Configures the model by reading it from a version catalog.
getDescription
Link copied to clipboard
abstract fun getDescription(): Property<String>
A description for the dependencies model, which will be used in the generated sources as documentation.
getLibrariesExtensionName
Link copied to clipboard
abstract fun getLibrariesExtensionName(): String
Returns the name of the extension configured by this builder
getName
Link copied to clipboard
abstract fun getName(): String
library
Link copied to clipboard
abstract fun library(alias: String, groupArtifactVersion: String)
Declare a library alias in full.
abstract fun library(alias: String, group: String, artifact: String): VersionCatalogBuilder.LibraryAliasBuilder
Entry point for registering a library alias.
plugin
Link copied to clipboard
abstract fun plugin(alias: String, id: String): VersionCatalogBuilder.PluginAliasBuilder
Entry point for registering a plugin alias.
version
Link copied to clipboard
abstract fun version(alias: String, version: String): String
Configures a dependency version which can then be referenced using the versionRef method.
abstract fun version(alias: String, versionSpec: Action<out Any>): String
Configures a dependency version which can then be referenced using the versionRef )} method.