@Incubating interface VcsMappings
Allows VCS mapping rules to be specified for a build. A VCS mapping rule is responsible for calculating the VCS information for a particular dependency. In settings.gradle:
sourceControl { vcsMappings { withModule("org.gradle:gradle") { from vcs(GitVersionControlSpec) { url = uri("https://github.com/gradle/gradle") } } all { details -> if (details.requested.group == "org.gradle") { from vcs(GitVersionControlSpec) { url = uri("https://github.com/gradle/${details.requested.module}") } } } } }
Since
4.4
abstract fun all(rule: Action<in VcsMapping>): VcsMappings
Adds a mapping rule that may define VCS information for any dependency. The supplied action is executed for all components. |
|
abstract fun withModule(module: String, rule: Action<in VcsMapping>): VcsMappings
Adds a mapping rule that may define VCS information for the given module. The supplied action is executed when the given module is required. |