Package org.gradle.vcs
Interface VersionControlSpec
- All Superinterfaces:
- Describable
- All Known Subinterfaces:
- GitVersionControlSpec
Captures user-provided information about a version control repository.
- Since:
- 4.4
- 
Method SummaryModifier and TypeMethodDescriptionReturns the name of the repository.Returns the relative path to the root of the build within the repository.Returns aStringidentifier which will be unique to this version control specification among other version control specifications.voidplugins(Action<? super InjectedPluginDependencies> configuration) Configure injected plugins into this build.voidsetRootDir(String rootDir) Sets the relative path to the root of the build within the repository.Methods inherited from interface org.gradle.api.DescribablegetDisplayName
- 
Method Details- 
getUniqueIdString getUniqueId()Returns aStringidentifier which will be unique to this version control specification among other version control specifications.
- 
getRepoNameString getRepoName()Returns the name of the repository.
- 
getRootDirString getRootDir()Returns the relative path to the root of the build within the repository.Defaults to an empty relative path, meaning the root of the repository. - Returns:
- the root directory of the build, relative to the root of this repository.
- Since:
- 4.5
 
- 
setRootDirSets the relative path to the root of the build within the repository. Use an empty string to refer to the root of the repository.- Parameters:
- rootDir- The root directory of the build, relative to the root of this repository.
- Since:
- 4.5
 
- 
pluginsConfigure injected plugins into this build.- Parameters:
- configuration- the configuration action for adding injected plugins
- Since:
- 4.6
 
 
-