# VersionControlRepository

interface VersionControlRepository

Represents the details about a particular VCS repository that contains a build that produces zero or more components that can be used during dependency resolution.

To make a repository definition useful, call the producesModule method for each group and module name that is produced by the build in the repository. When resolving a dependency that matches the group and module name, Gradle will look for a matching version in the repository and if present will check out the source and build the binaries from that source.

#### Since

4.10

## Functions

getRootDir
Link copied to clipboard
abstract fun getRootDir(): String
Returns the relative path to the root of the build within the repository.
plugins
Link copied to clipboard
abstract fun plugins(configuration: Action<in InjectedPluginDependencies>)
Defines the plugins to be injected into the build.
producesModule
Link copied to clipboard
abstract fun producesModule(module: String)
Declares that this repository produces (or may produce) component with the given group and module names.
setRootDir
Link copied to clipboard
abstract fun setRootDir(rootDir: String)
Sets the relative path to the root of the build within the repository.