@Incubating public interface VcsMappings
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}") } } } } }
Modifier and Type | Method | Description |
---|---|---|
VcsMappings |
all(Action<? super VcsMapping> rule) |
Adds a mapping rule that may define VCS information for any dependency.
|
VcsMappings |
withModule(String module,
Action<? super VcsMapping> rule) |
Adds a mapping rule that may define VCS information for the given module.
|
VcsMappings all(Action<? super VcsMapping> rule)
VcsMappings withModule(String module, Action<? super VcsMapping> rule)
module
- The module to apply the rule to, in the form "group:module".