Interface FileSpec
- All Known Implementing Classes:
DependencyFileSpec,LocalFileSpec,MavenFileSpec,MinimalExternalModuleDependencyFileSpec,URLFileSpec
@Experimental
public interface FileSpec
FileSpec should be used in MappingsSpec's that take an input file. The input file can either be a local file or a gradle dep.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileSpecCreates a file spec.static FileSpeccreateFromDependency(org.gradle.api.artifacts.Dependency dependency) static FileSpeccreateFromFile(File file) static FileSpeccreateFromFile(Path path) static FileSpeccreateFromFile(org.gradle.api.file.FileSystemLocation location) static FileSpeccreateFromFile(org.gradle.api.file.RegularFileProperty regularFileProperty) static FileSpeccreateFromMavenDependency(String dependencyNotation) static FileSpeccreateFromMinimalExternalModuleDependency(org.gradle.api.artifacts.MinimalExternalModuleDependency externalModuleDependency) static FileSpeccreateFromUrl(URL url) get(MappingContext context)
-
Method Details
-
create
Creates a file spec.The parameter will be evaluated like this:
File,PathandFileSystemLocationwill be resolved as local filesProvider(includingProperty) will recursively be resolved as its current valueCharSequence(includingStringandGString) will be resolved as Maven dependenciesDependencywill be resolved as any dependencyMinimalExternalModuleDependencywill be resolved as any dependencyFileSpecwill just return the spec itself
- Parameters:
o- the file notation- Returns:
- the created file spec
-
createFromMavenDependency
-
createFromDependency
-
createFromFile
-
createFromFile
-
createFromFile
-
createFromUrl
-
createFromFile
-
createFromMinimalExternalModuleDependency
static FileSpec createFromMinimalExternalModuleDependency(org.gradle.api.artifacts.MinimalExternalModuleDependency externalModuleDependency) -
get
-