Package org.gradle.vcs.git
Interface GitVersionControlSpec
-
- All Superinterfaces:
Describable,VersionControlSpec
public interface GitVersionControlSpec extends VersionControlSpec
A specification of a Git repository.- Since:
- 4.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.URIgetUrl()The URL for the repository in the specification.voidsetUrl(java.lang.String url)Sets the URL of the repository.voidsetUrl(java.net.URI url)Sets the URL of the repository.-
Methods inherited from interface org.gradle.api.Describable
getDisplayName
-
Methods inherited from interface org.gradle.vcs.VersionControlSpec
getRepoName, getRootDir, getUniqueId, plugins, setRootDir
-
-
-
-
Method Detail
-
getUrl
java.net.URI getUrl()
The URL for the repository in the specification.Note: The return value is a
URIto avoid exposing the full contract ofURLclients of this interface. Specifically,URLextendsURIto add network operations which are both unsuited for simple data specification and allocate additional memory.
-
setUrl
void setUrl(java.net.URI url)
Sets the URL of the repository.
-
setUrl
void setUrl(java.lang.String url)
Sets the URL of the repository.
-
-