|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
org.gradle.api.artifacts.repositories.AuthenticationSupportedorg.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.
When used to resolve metadata and artifact files, all available patterns will be searched.
When used to upload metadata and artifact files, only a single, primary pattern will be used:
| Field Summary | |
|---|---|
String |
GRADLE_ARTIFACT_PATTERN
|
String |
GRADLE_IVY_PATTERN
|
String |
MAVEN_ARTIFACT_PATTERN
|
String |
MAVEN_IVY_PATTERN
|
| Method Summary | |
|---|---|
void
|
artifactPattern(String pattern)
Adds an independent pattern that will be used to locate artifact files in this repository. |
IvyArtifactRepositoryMetaDataProvider
|
getResolve()
Returns the meta-data provider used when resolving artifacts from this repository. |
URI
|
getUrl()
The base URL of this repository. |
void
|
ivyPattern(String pattern)
Adds an independent pattern that will be used to locate ivy files in this repository. |
void
|
layout(String layoutName)
Specifies the layout to use with this repository, based on the root url. |
void
|
layout(String layoutName, Closure config)
Specifies the layout to use with this repository, based on the root url. |
void
|
setUrl(Object url)
Sets the base URL of this repository. |
| Methods inherited from interface AuthenticationSupported | |
|---|---|
| credentials, getCredentials |
| Methods inherited from interface ArtifactRepository | |
|---|---|
| getName, setName |
| Field Detail |
|---|
public String GRADLE_ARTIFACT_PATTERN
public String GRADLE_IVY_PATTERN
public String MAVEN_ARTIFACT_PATTERN
public String MAVEN_IVY_PATTERN
| Method Detail |
|---|
public void artifactPattern(String pattern)
pattern - The artifact pattern.
@Incubating public IvyArtifactRepositoryMetaDataProvider getResolve()
public URI getUrl()
public void ivyPattern(String pattern)
pattern - The ivy pattern.
public void layout(String layoutName)
layoutName - The name of the layout to use.
public void layout(String layoutName, 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.
public void setUrl(Object url)
url - The base URL.
Gradle API 1.5