@Incubating public interface VersionControlRepository
To make a repository definition useful, call the producesModule(String)
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.
Modifier and Type | Method and Description |
---|---|
String |
getRootDir()
Returns the relative path to the root of the build within the repository.
|
void |
plugins(Action<? super InjectedPluginDependencies> configuration)
Defines the plugins to be injected into the build.
|
void |
producesModule(String module)
Declares that this repository produces (or may produce) component with the given group and module names.
|
void |
setRootDir(String rootDir)
Sets the relative path to the root of the build within the repository.
|
void producesModule(String module)
module
- The module identity, in "group:module" format.String getRootDir()
Defaults to an empty relative path, meaning the root of the repository.
void setRootDir(String rootDir)
rootDir
- The root directory of the build, relative to the root of this repository.void plugins(Action<? super InjectedPluginDependencies> configuration)
Currently, plugins must be located in the calling build's `buildSrc` project.
configuration
- the configuration action for adding injected plugins