Schnittstelle FileCollectionDependency

Alle Superschnittstellen:
Buildable, Dependency, SelfResolvingDependency

public interface FileCollectionDependency extends SelfResolvingDependency
A FileCollectionDependency is a Dependency on a collection of local files which are not stored in a repository.
  • Methodendetails

    • getFiles

      FileCollection getFiles()
      Returns the files attached to this dependency.
      Seit:
      3.3
    • getBuildDependencies

      @Deprecated TaskDependency getBuildDependencies()
      Veraltet.
      This class will no longer implement SelfResolvingDependency in Gradle 9.0.
      Returns a dependency which contains the tasks which build this artifact. All Buildable implementations must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this buildable.
      Angegeben von:
      getBuildDependencies in Schnittstelle Buildable
      Gibt zurück:
      The dependency. Never returns null. Returns an empty dependency when this artifact is not built by any tasks.
    • resolve

      @Deprecated Set<File> resolve()
      Veraltet.
      This class will no longer implement SelfResolvingDependency in Gradle 9.0. Use getFiles() instead.
      Resolves this dependency. A ProjectDependency is resolved with transitive equals true by this method.
      Angegeben von:
      resolve in Schnittstelle SelfResolvingDependency
      Gibt zurück:
      The files which make up this dependency.
      Siehe auch:
    • resolve

      @Deprecated Set<File> resolve(boolean transitive)
      Veraltet.
      This class will no longer implement SelfResolvingDependency in Gradle 9.0. Use getFiles() instead.
      Resolves this dependency by specifying the transitive mode. This mode has only an effect if the self resolved dependency is of type ProjectDependency. In this case, if transitive is false, only the self resolving dependencies of the project configuration which are no project dependencies are resolved. If transitive is set to true, other project dependencies belonging to the configuration of the resolved project dependency are resolved recursively.
      Angegeben von:
      resolve in Schnittstelle SelfResolvingDependency
      Parameter:
      transitive - Whether to resolve transitively. Has only an effect on a ProjectDependency
      Gibt zurück:
      The files which make up this dependency.