public interface RepositoryHandler extends org.gradle.api.NamedDomainObjectList<org.gradle.api.artifacts.repositories.ArtifactRepository>, org.gradle.util.Configurable<RepositoryHandler>
| Modifier and Type | Method and Description |
|---|---|
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.
|
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) |
findAll, 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, toArrayorg.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository flatDir(java.util.Map<java.lang.String,?> args)
":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"]
}
args - The arguments used to configure the repository.org.gradle.api.InvalidUserDataException - In the case neither rootDir nor rootDirs is specified of if both
are specified.org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository flatDir(groovy.lang.Closure<?> configureClosure)
configureClosure - The closure to execute to configure the repository.org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository flatDir(org.gradle.api.Action<? super org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository> action)
action - The action to execute to configure the repository.TekgenesisArtifactRepository tekgenesis(groovy.lang.Closure<?> configureClosure)
tekgenesis {
repositories {
tekgenesis key: 'appkey'
}
}
configureClosure - The closure to execute to configure the repository.TekgenesisArtifactRepository tekgenesis(java.util.Map<java.lang.String,?> args)
TekgenesisArtifactRepository tekgenesis(org.gradle.api.Action<? super TekgenesisArtifactRepository> action)
RsyncArtifactRepository rsync(groovy.lang.Closure<?> configureClosure)
tekgenesis {
repositories {
rsync path: 'git@git.tekgenesis.com/home/git/dists'
}
}
configureClosure - The closure to execute to configure the repository.RsyncArtifactRepository rsync(java.util.Map<java.lang.String,?> args)
RsyncArtifactRepository rsync(org.gradle.api.Action<? super RsyncArtifactRepository> action)
S3ArtifactRepository s3(groovy.lang.Closure<?> configureClosure)
S3ArtifactRepository s3(java.util.Map<java.lang.String,?> args)
S3ArtifactRepository s3(org.gradle.api.Action<? super S3ArtifactRepository> action)