api / org.gradle.api.file / ProjectLayout / file

file

abstract fun file(file: Provider<File>): Provider<RegularFile>

Creates a RegularFile provider whose location is calculated from the given Provider.