Interface ProjectLayout

  • public interface ProjectLayout
    Provides access to several important locations for a project.

    An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or method with javax.inject.Inject. It is also available via Project.getLayout().

    Note: This interface is not intended for implementation by build script or plugin authors.

    • Method Detail

      • getProjectDirectory

        Directory getProjectDirectory()
        Returns the project directory.
      • getBuildDirectory

        DirectoryProperty getBuildDirectory()
        Returns the build directory for the project.
      • files

        FileCollection files​(java.lang.Object... paths)

        Creates a read-only FileCollection containing the given files, as defined by Project.files(Object...).

        This method can also be used to create an empty collection, but the collection may not be mutated later.

        paths - The paths to the files. May be empty.
        The file collection. Never returns null.