public class DefaultRepositoryHandler extends org.gradle.api.internal.DefaultNamedDomainObjectList<org.gradle.api.artifacts.repositories.ArtifactRepository> implements RepositoryHandler
| Constructor and Description |
|---|
DefaultRepositoryHandler(org.gradle.internal.reflect.Instantiator instantiator) |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.gradle.api.artifacts.repositories.ArtifactRepository> |
addRepository(T repository,
java.lang.String defaultName,
org.gradle.api.Action<? super T> configureAction) |
DefaultRepositoryHandler |
configure(groovy.lang.Closure closure) |
org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository |
flatDir(org.gradle.api.Action<? super org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository> action)
Adds an configures a repository which will look for dependencies in a number of local directories.
|
org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository |
flatDir(groovy.lang.Closure<?> configureClosure)
Adds an configures a repository which will look for dependencies in a number of local directories.
|
org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository |
flatDir(java.util.Map<java.lang.String,?> args)
Adds a resolver that looks into a number of directories for artifacts.
|
java.lang.String |
getTypeDisplayName() |
RsyncArtifactRepository |
rsync(org.gradle.api.Action<? super RsyncArtifactRepository> action) |
RsyncArtifactRepository |
rsync(groovy.lang.Closure<?> configureClosure)
Adds and configures a repository which connects via rsync (ssh) to a remote server
Examples:
|
RsyncArtifactRepository |
rsync(java.util.Map<java.lang.String,?> args) |
S3ArtifactRepository |
s3(org.gradle.api.Action<? super S3ArtifactRepository> action) |
S3ArtifactRepository |
s3(groovy.lang.Closure<?> configureClosure) |
S3ArtifactRepository |
s3(java.util.Map<java.lang.String,?> args) |
TekgenesisArtifactRepository |
tekgenesis(org.gradle.api.Action<? super TekgenesisArtifactRepository> action) |
TekgenesisArtifactRepository |
tekgenesis(groovy.lang.Closure<?> configureClosure)
Add and configures a repository which looks in Tekgenesis Artifact Directory.
|
TekgenesisArtifactRepository |
tekgenesis(java.util.Map<java.lang.String,?> args) |
add, addAll, filteredStore, findAll, get, getStore, indexOf, lastIndexOf, listIterator, listIterator, matching, matching, remove, set, subList, withTypeadd, addRule, addRule, assertCanAdd, assertCanAdd, clear, createNotFoundException, didAdd, didRemove, filtered, filteredIndex, findByName, findByNameWithoutRules, getAsDynamicObject, getAsMap, getAt, getByName, getByName, getConvention, getDisplayName, getElementsAsDynamicObject, getExtensions, getInstantiator, getNamer, getNames, getRules, handleAttemptToAddItemWithNonUniqueName, hasWithName, index, removeByNameaddAll, all, all, assertMutable, beforeChange, contains, containsAll, createFilter, createFilter, createFilter, filteredEvents, findAll, getEventRegister, getType, isEmpty, iterator, remove, removeAll, retainAll, size, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindAll, matching, matching, withTypeadd, addAll, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getNamer, getNames, getRulesall, all, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypeclear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArrayadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArraypublic DefaultRepositoryHandler(org.gradle.internal.reflect.Instantiator instantiator)
public DefaultRepositoryHandler configure(groovy.lang.Closure closure)
configure in interface org.gradle.util.Configurable<RepositoryHandler>public java.lang.String getTypeDisplayName()
getTypeDisplayName in class org.gradle.api.internal.DefaultNamedDomainObjectCollection<org.gradle.api.artifacts.repositories.ArtifactRepository>public org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository flatDir(java.util.Map<java.lang.String,?> args)
RepositoryHandler":junit:4.4" instead of "junit:junit:4.4".
The following parameter are accepted as keys for the map:
| Key | Description of Associated Value |
|---|---|
name |
(optional) The name of the repository. The default is a Hash value of the rootdir paths. The name is used in the console output, to point to information related to a particular repository. A name must be unique amongst a repository group. |
dirs |
Specifies a list of rootDirs where to look for dependencies. These are evaluated as per Project.files(Object...) |
repositories {
flatDir name: 'libs', dirs: "$projectDir/libs"
flatDir dirs: ["$projectDir/libs1", "$projectDir/libs2"]
}
flatDir in interface RepositoryHandlerargs - The arguments used to configure the repository.public org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository flatDir(groovy.lang.Closure<?> configureClosure)
RepositoryHandlerflatDir in interface RepositoryHandlerconfigureClosure - The closure to execute to configure the repository.public org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository flatDir(org.gradle.api.Action<? super org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository> action)
RepositoryHandlerflatDir in interface RepositoryHandleraction - The action to execute to configure the repository.public TekgenesisArtifactRepository tekgenesis(groovy.lang.Closure<?> configureClosure)
RepositoryHandler
tekgenesis {
repositories {
tekgenesis key: 'appkey'
}
}
tekgenesis in interface RepositoryHandlerconfigureClosure - The closure to execute to configure the repository.public TekgenesisArtifactRepository tekgenesis(java.util.Map<java.lang.String,?> args)
tekgenesis in interface RepositoryHandlerpublic TekgenesisArtifactRepository tekgenesis(org.gradle.api.Action<? super TekgenesisArtifactRepository> action)
tekgenesis in interface RepositoryHandlerpublic RsyncArtifactRepository rsync(groovy.lang.Closure<?> configureClosure)
RepositoryHandler
tekgenesis {
repositories {
rsync path: 'git@git.tekgenesis.com/home/git/dists'
}
}
rsync in interface RepositoryHandlerconfigureClosure - The closure to execute to configure the repository.public RsyncArtifactRepository rsync(java.util.Map<java.lang.String,?> args)
rsync in interface RepositoryHandlerpublic RsyncArtifactRepository rsync(org.gradle.api.Action<? super RsyncArtifactRepository> action)
rsync in interface RepositoryHandlerpublic S3ArtifactRepository s3(groovy.lang.Closure<?> configureClosure)
s3 in interface RepositoryHandlerpublic S3ArtifactRepository s3(java.util.Map<java.lang.String,?> args)
s3 in interface RepositoryHandlerpublic S3ArtifactRepository s3(org.gradle.api.Action<? super S3ArtifactRepository> action)
s3 in interface RepositoryHandlerpublic <T extends org.gradle.api.artifacts.repositories.ArtifactRepository> T addRepository(T repository,
java.lang.String defaultName,
org.gradle.api.Action<? super T> configureAction)