# FlatDirectoryArtifactRepository

interface FlatDirectoryArtifactRepository : ArtifactRepository

A repository that looks into a number of directories for artifacts. The artifacts are expected to be located in the root of the specified directories. The repository ignores any group/organization information specified in the dependency section of your build script. If you only use this kind of resolver you can specify your dependencies like `:junit:4.8.1` instead of `junit:junit:4.8.1`.

To resolve a dependency, this resolver looks for one of the following files. It will return the first match it finds:

- [artifact]-[version].[ext]
- [artifact]-[version]-[classifier].[ext]
- [artifact].[ext]
- [artifact]-[classifier].[ext]

So, for example, to resolve `:junit:junit:4.8.1`, this repository will look for `junit-4.8.1.jar` and then `junit.jar`.

## Functions

content
Link copied to clipboard
abstract fun content(configureAction: Action<in RepositoryContentDescriptor>)
Configures the content of this repository.
dir
Link copied to clipboard
abstract fun dir(dir: Any)
Adds a directory where this repository will look for artifacts.
dirs
Link copied to clipboard
abstract fun dirs(@Nullable dirs: Array<@Nullable Any>)
Adds some directories where this repository will look for artifacts.
getDirs
Link copied to clipboard
abstract fun getDirs(): Set<File>
Returns the directories where this repository will look for artifacts.
getName
Link copied to clipboard
abstract fun getName(): String
Returns the name for this repository.
setDirs
Link copied to clipboard
abstract fun setDirs(dirs: Iterable<out Any>)
abstract fun setDirs(dirs: Set<File>)
Sets the directories where this repository will look for artifacts.
setName
Link copied to clipboard
abstract fun setName(name: String)
Sets the name for this repository.