interface RepositoryHandler : ArtifactRepositoryContainer
A RepositoryHandler
manages a set of repositories, allowing repositories to be defined and queried.
static val DEFAULT_MAVEN_CENTRAL_REPO_NAME: String |
|
static val DEFAULT_MAVEN_LOCAL_REPO_NAME: String |
|
static val GOOGLE_URL: String |
|
static val MAVEN_CENTRAL_URL: String |
abstract fun flatDir(args: MutableMap<String, *>): FlatDirectoryArtifactRepository
Adds a resolver that looks into a number of directories for artifacts. The artifacts are expected to be located in the root of the specified directories. The resolver ignores any group/organization information specified in the dependency section of your build script. If you only use this kind of resolver you might specify your dependencies like Examples:
abstract fun flatDir(configureClosure: Closure<Any>): FlatDirectoryArtifactRepository abstract fun flatDir(action: Action<in FlatDirectoryArtifactRepository>): FlatDirectoryArtifactRepository
Adds an configures a repository which will look for dependencies in a number of local directories. |
|
abstract fun google(): MavenArtifactRepository
Adds a repository which looks in Google's Maven repository for dependencies. The URL used to access this repository is "https://dl.google.com/dl/android/maven2/". Examples:
|
|
abstract fun gradlePluginPortal(): ArtifactRepository
Adds a repository which looks in Gradle Central Plugin Repository for dependencies. |
|
abstract fun ivy(closure: Closure<Any>): IvyArtifactRepository
Adds and configures an Ivy repository. Newly created instance of abstract fun ivy(action: Action<in IvyArtifactRepository>): IvyArtifactRepository
Adds and configures an Ivy repository. |
|
abstract fun jcenter(action: Action<in MavenArtifactRepository>): MavenArtifactRepository
Adds a repository which looks in Bintray's JCenter repository for dependencies. The URL used to access this repository is "https://jcenter.bintray.com/". The behavior of this repository is otherwise the same as those added by Examples:
abstract fun jcenter(): MavenArtifactRepository
Adds a repository which looks in Bintray's JCenter repository for dependencies. The URL used to access this repository is "https://jcenter.bintray.com/". The behavior of this repository is otherwise the same as those added by Examples:
|
|
abstract fun maven(closure: Closure<Any>): MavenArtifactRepository
Adds and configures a Maven repository. Newly created instance of abstract fun maven(action: Action<in MavenArtifactRepository>): MavenArtifactRepository
Adds and configures a Maven repository. |
|
abstract fun mavenCentral(args: MutableMap<String, *>): MavenArtifactRepository
Adds a repository which looks in the Maven central repository for dependencies. The URL used to access this repository is {@value org.gradle.api.artifacts.ArtifactRepositoryContainer#MAVEN_CENTRAL_URL}. The following parameter are accepted as keys for the map: Key Description of Associated Valuename (optional) The name of the repository. The default is {@value org.gradle.api.artifacts.ArtifactRepositoryContainer#DEFAULT_MAVEN_CENTRAL_REPO_NAME} is used as the name. A name must be unique amongst a repository group. artifactUrls A single jar repository or a collection of jar repositories containing additional artifacts not found in the Maven central repository. But be aware that the POM must exist in Maven central. The provided values are evaluated as per org.gradle.api.Project#uri(Object) .
Examples:
abstract fun mavenCentral(): MavenArtifactRepository
Adds a repository which looks in the Maven central repository for dependencies. The URL used to access this repository is {@value org.gradle.api.artifacts.ArtifactRepositoryContainer#MAVEN_CENTRAL_URL}. The name of the repository is {@value org.gradle.api.artifacts.ArtifactRepositoryContainer#DEFAULT_MAVEN_CENTRAL_REPO_NAME}. Examples:
|
|
abstract fun mavenLocal(): MavenArtifactRepository
Adds a repository which looks in the local Maven cache for dependencies. The name of the repository is {@value org.gradle.api.artifacts.ArtifactRepositoryContainer#DEFAULT_MAVEN_LOCAL_REPO_NAME}. Examples:
The location for the repository is determined as follows (in order of precedence):
|
abstract fun add(element: ArtifactRepository): Boolean
Adds a repository to this container, at the end of the repository sequence. |
|
abstract fun addFirst(repository: ArtifactRepository): Unit
Adds a repository to this container, at the start of the repository sequence. |
|
abstract fun addLast(repository: ArtifactRepository): Unit
Adds a repository to this container, at the end of the repository sequence. |
|
abstract fun getAt(name: String): ArtifactRepository
{@inheritDoc} |
|
abstract fun getByName(name: String): ArtifactRepository abstract fun getByName(name: String, configureClosure: Closure<Any>): ArtifactRepository abstract fun getByName(name: String, configureAction: Action<in ArtifactRepository>): ArtifactRepository
{@inheritDoc} |
fun RepositoryHandler.
Adds the remote repository containing the Kotlin libraries embedded in gradle-kotlin-dsl. |
|
fun RepositoryHandler.ivy(url: Any): IvyArtifactRepository fun RepositoryHandler.ivy(url: Any, action: IvyArtifactRepository.() -> Unit): IvyArtifactRepository
Adds and configures an Ivy repository. |
|
fun RepositoryHandler.maven(url: Any): MavenArtifactRepository fun RepositoryHandler.maven(url: Any, action: MavenArtifactRepository.() -> Unit): MavenArtifactRepository
Adds and configures a Maven repository. |