gradle
8.4

# gitRepository

abstract fun gitRepository(url: URI): VersionControlRepository(source)

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.

#### Parameters

url

The URL of the Git repository.

abstract fun gitRepository(url: URI, configureAction: Action<out Any>)(source)

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

A Git repository can safely be registered multiple times.

#### Parameters

url

The URL of the Git repository.

configureAction

An action to use to configure the repository.