gradle
8.3

# file

open fun file(@DelegatesTo(value = XmlFileContentMerger::class) closure: Closure)
open fun file(action: Action<out Any>)

Enables advanced configuration like tinkering with the output XML or affecting the way that the contents of an existing .classpath file is merged with Gradle build information. The object passed to the whenMerged{} and beforeMerged{} closures is of type Classpath.

See EclipseProject for an example.

open var file: XmlFileContentMerger