SourceControl

Configuration that defines the source dependencies available in this build.

To add source dependencies to a build, you call the gitRepository or gitRepository methods to define each Git repository that Gradle should use to locate dependencies as they are required. See VersionControlRepository for more details.

If you need to use more sophisticated mappings to control the resolution of source dependencies, you can use the getVcsMappings or vcsMappings methods.

Since

4.4

Functions

Link copied to clipboard
abstract fun getVcsMappings(): VcsMappings
Returns the VCS mappings configuration.
Link copied to clipboard
Registers a Git repository that contains some components that should be used as source dependencies.
abstract fun gitRepository(url: URI, configureAction: Action<in VersionControlRepository>)
Registers a Git repository that contains some components that should be used as dependencies.
Link copied to clipboard
abstract fun vcsMappings(configuration: Action<in VcsMappings>)
Configures VCS mappings.