public interface VcsMappings
sourceControl {
vcsMappings {
withModule("org.gradle:gradle") {
from(GitVersionControlSpec) {
url = uri("https://github.com/gradle/gradle")
}
}
all { details ->
if (details.requested.group == "org.gradle") {
from(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".