For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

minus

abstract fun minus(collection: FileCollection): FileCollection(source)

Returns a FileCollection which contains the difference between this collection and the given collection. The returned collection is live, and tracks changes to both source collections.

You can call this method in your build script using the - operator.

Return

A new collection containing the difference.

Since

0.9

Parameters

collection

The other collection. Should not be null.