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.

addAll

abstract fun addAll(c: Collection<out T>): Boolean(source)

Adds any of the given objects to the collection that do not have the same name as any existing element.

Return

true if any item was added, or false if all items have non unique names within this collection.

Parameters

c

the items to add to the collection