For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

gitRepository

Registers a Git repository that contains some components that should be used as source dependencies.

A Git repository can safely be registered multiple times.

Return

An object that can be used to configure the details of the repository.

Since

4.10

Parameters

url

The URL of the Git repository.


abstract fun gitRepository(url: URI, configureAction: Action<in VersionControlRepository>)(source)

Registers a Git repository that contains some components that should be used as dependencies.

A Git repository can safely be registered multiple times.

Since

4.10

Parameters

url

The URL of the Git repository.

configureAction

An action to use to configure the repository.