Interface FlatDirectoryArtifactRepository
- All Superinterfaces:
- 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]
:junit:junit:4.8.1, this repository will look for junit-4.8.1.jar and then junit.jar.- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a directory where this repository will look for artifacts.voidAdds some directories where this repository will look for artifacts.getDirs()Returns the directories where this repository will look for artifacts.voidSets the directories where this repository will look for artifacts.voidSets the directories where this repository will look for artifacts.Methods inherited from interface org.gradle.api.artifacts.repositories.ArtifactRepositorycontent, getName, setName
- 
Method Details- 
getDirsReturns the directories where this repository will look for artifacts.- Returns:
- The directories. Never null.
 
- 
dirAdds a directory where this repository will look for artifacts.The provided value are evaluated as per Project.file(Object).- Parameters:
- dir- the directory
 
- 
dirsAdds some directories where this repository will look for artifacts.The provided values are evaluated as per Project.files(Object...).- Parameters:
- dirs- the directories.
 
- 
setDirsSets the directories where this repository will look for artifacts.- Parameters:
- dirs- the directories.
- Since:
- 4.0
 
- 
setDirsSets the directories where this repository will look for artifacts.The provided values are evaluated as per Project.files(Object...).- Parameters:
- dirs- the directories.
 
 
-