public interface IvyArtifactRepository extends ArtifactRepository, AuthenticationSupported
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GRADLE_ARTIFACT_PATTERN |
static java.lang.String |
GRADLE_IVY_PATTERN |
static java.lang.String |
MAVEN_ARTIFACT_PATTERN |
static java.lang.String |
MAVEN_IVY_PATTERN |
Modifier and Type | Method and Description |
---|---|
void |
artifactPattern(java.lang.String pattern)
Adds an Ivy artifact pattern to use to locate artifacts in this repository.
|
java.net.URI |
getUrl()
The base URL of this repository.
|
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,
Closure config)
Specifies the layout to use with this repository, based on the root url.
|
void |
setUrl(java.lang.Object url)
Sets the base URL of this repository.
|
getName, setName
credentials, getCredentials
static final java.lang.String GRADLE_ARTIFACT_PATTERN
static final java.lang.String GRADLE_IVY_PATTERN
static final java.lang.String MAVEN_ARTIFACT_PATTERN
static final java.lang.String MAVEN_IVY_PATTERN
java.net.URI getUrl()
void setUrl(java.lang.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(java.lang.String pattern)
setUrl(java.lang.Object)
.pattern
- The artifact pattern.void ivyPattern(java.lang.String pattern)
setUrl(java.lang.Object)
.pattern
- The ivy pattern.void layout(java.lang.String layoutName)
layout(String, Closure)
.layoutName
- The name of the layout to use.void layout(java.lang.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.