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.

assign

Sets the ConfigurableFileCollection to contain the source paths of passed collection. This is the same as calling ConfigurableFileCollection.setFrom(fileCollection: FileCollection).

Since

8.2


fun <T : Any> Property<T>.assign(value: T?)(source)

Assign value: T to a property with assign operator

Since

8.2


fun <T : Any> Property<T>.assign(value: Provider<out T>)(source)

Assign value: Provider to a property with assign operator

Since

8.2


Assign file to a FileSystemLocationProperty with assign operator

Since

8.2


Assign file provided by a Provider to a FileSystemLocationProperty with assign operator

Since

8.2


fun <T : Any> HasMultipleValues<T>.assign(elements: Iterable<T>?)(source)

Sets the value of the property to the elements of the given iterable, and replaces any existing value

Since

8.2


fun <T : Any> HasMultipleValues<T>.assign(provider: Provider<out Iterable<T>>)(source)
fun <K : Any, V : Any> MapProperty<K, V>.assign(provider: Provider<out Map<out K, V>>)(source)

Sets the property to have the same value of the given provider, and replaces any existing value

Since

8.2


fun <K : Any, V : Any> MapProperty<K, V>.assign(entries: Map<out K, V>?)(source)

Sets the value of this property to the entries of the given Map, and replaces any existing value

Since

8.2