@Incubating public interface IvyPluginRepository extends PluginRepository, AuthenticationSupported
| Modifier and Type | Method and Description |
|---|---|
void |
artifactPattern(String pattern)
Adds an independent pattern that will be used to locate artifact files in 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,
Action<? extends RepositoryLayout> config)
Specifies how the items of the repository are organized.
|
void |
setUrl(Object url)
Sets the base URL of this repository.
|
void |
setUrl(URI url)
Sets the base URL of this repository.
|
authentication, credentials, credentials, getAuthentication, getCredentials, getCredentials@Nullable URI getUrl()
void setUrl(URI url)
url - The base URL.void setUrl(Object url)
The provided value is evaluated relative to the build's directory. This
means, for example, you can pass in a File object, or a relative path to be
evaluated relative to the directory of the settings.gradle file in which this
repository is declared.
url - The base URL.void artifactPattern(String pattern)
ivyPattern(String).
If this pattern is not a fully-qualified URL, it will be interpreted as a file relative to the project directory.
It is not interpreted relative the URL specified in setUrl(Object).
Patterns added in this way will be in addition to any layout-based patterns added via setUrl(java.net.URI).pattern - The artifact pattern.void ivyPattern(String pattern)
setUrl(Object).
Patterns added in this way will be in addition to any layout-based patterns added via setUrl(java.net.URI).pattern - The ivy pattern.void layout(String layoutName)
layout(String, Action).layoutName - The name of the layout to use.void layout(String layoutName, Action<? extends RepositoryLayout> config)
The layout is configured with the supplied closure.
Recognised values are as follows:
A Repository Layout that applies the following patterns:
$baseUri/"[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])"$baseUri/"[organisation]/[module]/[revision]/ivy-[revision].xml"A Repository Layout that applies the following patterns:
$baseUri/"[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])"$baseUri/"[organisation]/[module]/[revision]/ivy-[revision].xml"Following the Maven convention, the 'organisation' value is further processed by replacing '.' with '/'.
A Repository Layout that applies the following patterns:
$baseUri/"[organisation]/[module]/[revision]/[type]s/[artifact](.[ext])"$baseUri/"[organisation]/[module]/[revision]/[type]s/[artifact](.[ext])"A repository layout that allows custom patterns to be defined. eg:
repositories {
ivy {
layout 'pattern' , {
artifact '[module]/[revision]/[artifact](.[ext])'
ivy '[module]/[revision]/ivy.xml'
}
}
}
The available pattern tokens are listed as part of Ivy's Main Concepts documentation.
layoutName - The name of the layout to use.config - The action used to configure the layout.