ProjectLayout

@ServiceScope(value = Project::class)
interface ProjectLayout(source)

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 getLayout.

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

Since

4.1

Functions

Link copied to clipboard
abstract fun dir(file: Provider<File>): Provider<Directory>
Creates a Directory provider whose location is calculated from the given Provider.
Link copied to clipboard
abstract fun file(file: Provider<File>): Provider<RegularFile>
Creates a RegularFile provider whose location is calculated from the given Provider.
Link copied to clipboard
abstract fun files(paths: Array<Any>): FileCollection
Creates a read-only FileCollection containing the given files, as defined by files.
Link copied to clipboard
Returns the build directory for the project.
Link copied to clipboard
Returns the project directory.