|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IvyArtifactRepository
An artifact repository which uses an Ivy format to store artifacts and meta-data.
| Field Summary | |
|---|---|
static String |
GRADLE_ARTIFACT_PATTERN
|
static String |
GRADLE_IVY_PATTERN
|
static String |
MAVEN_ARTIFACT_PATTERN
|
static String |
MAVEN_IVY_PATTERN
|
| Method Summary | |
|---|---|
void |
artifactPattern(String pattern)
Adds an Ivy artifact pattern to use to locate artifacts in this repository. |
String |
getPassword()
Deprecated. Use AuthenticationSupported.getCredentials() and PasswordCredentials.getPassword() instead. |
URI |
getUrl()
The base URL of this repository. |
String |
getUserName()
Deprecated. Use AuthenticationSupported.getCredentials() and PasswordCredentials.getUsername() instead. |
void |
ivyPattern(String pattern)
Adds an Ivy pattern to use 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 |
setPassword(String password)
Deprecated. Use AuthenticationSupported.getCredentials() and PasswordCredentials.setPassword(String) instead. |
void |
setUrl(Object url)
Sets the base URL of this repository. |
void |
setUserName(String username)
Deprecated. Use AuthenticationSupported.getCredentials() and PasswordCredentials.setUsername(String) instead. |
| Methods inherited from interface org.gradle.api.artifacts.repositories.ArtifactRepository |
|---|
getName, setName |
| Methods inherited from interface org.gradle.api.artifacts.repositories.AuthenticationSupported |
|---|
credentials, getCredentials |
| Field Detail |
|---|
static final String GRADLE_ARTIFACT_PATTERN
static final String GRADLE_IVY_PATTERN
static final String MAVEN_ARTIFACT_PATTERN
static final String MAVEN_IVY_PATTERN
| Method Detail |
|---|
URI getUrl()
void setUrl(Object url)
Project.uri(Object). This means,
for example, you can pass in a File object or a relative path which is evaluated relative to the project directory.
File are resolved based on the supplied URL and the configured layout(String, Closure) for this repository.
url - The base URL.void artifactPattern(String pattern)
setUrl(java.lang.Object).
pattern - The artifact pattern.void ivyPattern(String pattern)
setUrl(java.lang.Object).
pattern - The ivy pattern.void layout(String layoutName)
layout(String, Closure).
layoutName - The name of the layout to use.
void layout(String layoutName,
Closure config)
$baseUri/"[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])"$baseUri/"[organisation]/[module]/[revision]/ivy-[revision].xml"$baseUri/"[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])"$baseUri/"[organisation]/[module]/[revision]/ivy-[revision].xml"
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 String getUserName()
AuthenticationSupported.getCredentials() and PasswordCredentials.getUsername() instead.
@Deprecated void setUserName(String username)
AuthenticationSupported.getCredentials() and PasswordCredentials.setUsername(String) instead.
username - the username, may be null.@Deprecated String getPassword()
AuthenticationSupported.getCredentials() and PasswordCredentials.getPassword() instead.
@Deprecated void setPassword(String password)
AuthenticationSupported.getCredentials() and PasswordCredentials.setPassword(String) instead.
password - the password, may be null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||