|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.artifacts.repositories.AuthenticationSupported org.gradle.api.artifacts.repositories.ArtifactRepository org.gradle.api.artifacts.repositories.IvyArtifactRepository
public interface IvyArtifactRepository extends ArtifactRepository, AuthenticationSupported
An artifact repository which uses an Ivy format to store artifacts and meta-data.
Field Summary | |
---|---|
java.lang.String |
GRADLE_ARTIFACT_PATTERN
|
java.lang.String |
GRADLE_IVY_PATTERN
|
java.lang.String |
MAVEN_ARTIFACT_PATTERN
|
java.lang.String |
MAVEN_IVY_PATTERN
|
Method Summary | |
---|---|
void
|
artifactPattern(java.lang.String pattern)
Adds an Ivy artifact pattern to use to locate artifacts in this repository. |
java.lang.String
|
getPassword()
Returns the password to use for authentication with this repository, if any. |
java.net.URI
|
getUrl()
The base URL of this repository. |
java.lang.String
|
getUserName()
Returns the username to use for authentication with this repository, if any. |
void
|
ivyPattern(java.lang.String pattern)
Adds an Ivy pattern to use to locate ivy files in this repository. |
void
|
layout(java.lang.String layoutName)
Specifies the layout to use with this repository, based on the root url. |
void
|
layout(java.lang.String layoutName, groovy.lang.Closure config)
Specifies the layout to use with this repository, based on the root url. |
void
|
setPassword(java.lang.String password)
Sets the password to use for authentication with this repository, if any. |
void
|
setUrl(java.lang.Object url)
Sets the base URL of this repository. |
void
|
setUserName(java.lang.String username)
Sets the username to use for authentication with this repository, if any. |
Methods inherited from interface AuthenticationSupported | |
---|---|
credentials, getCredentials |
Methods inherited from interface ArtifactRepository | |
---|---|
getName, setName |
Field Detail |
---|
public java.lang.String GRADLE_ARTIFACT_PATTERN
public java.lang.String GRADLE_IVY_PATTERN
public java.lang.String MAVEN_ARTIFACT_PATTERN
public java.lang.String MAVEN_IVY_PATTERN
Method Detail |
---|
public void artifactPattern(java.lang.String pattern)
pattern
- The artifact pattern.
@Deprecated public java.lang.String getPassword()
public java.net.URI getUrl()
@Deprecated public java.lang.String getUserName()
public void ivyPattern(java.lang.String pattern)
pattern
- The ivy pattern.
public void layout(java.lang.String layoutName)
layoutName
- The name of the layout to use.
public void layout(java.lang.String layoutName, groovy.lang.Closure config)
$baseUri/{- value:
- #GRADLE_ARTIFACT_PATTERN}
$baseUri/{@value #GRADLE_IVY_PATTERN}
$baseUri/{@value #MAVEN_ARTIFACT_PATTERN}
$baseUri/{@value #MAVEN_IVY_PATTERN}
repositories { ivy { layout 'pattern' , { artifact '[module]/[revision]/[artifact](.[ext])' ivy '[module]/[revision]/ivy.xml' } } }
layoutName
- The name of the layout to use.config
- The closure used to configure the layout.
@Deprecated public void setPassword(java.lang.String password)
password
- the password, may be null.
public void setUrl(java.lang.Object url)
url
- The base URL.
@Deprecated public void setUserName(java.lang.String username)
username
- the username, may be null.
Groovy Documentation