Stay organized with collections
Save and categorize content based on your preferences.
ConfigurableFiles
@Incubating interface ConfigurableFiles
A container for a collection of files that has the capability to add a single existing file or a group of existing files to the collection
Summary
Public functions
Public properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ConfigurableFiles\n=================\n\n\n```\n@Incubating interface ConfigurableFiles\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[ConsumerKeepRules](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/ConsumerKeepRules), [LibraryKeepRules](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/LibraryKeepRules) \n\n|--------------------------------------------------------------------------------------------------|---|\n| [ConsumerKeepRules](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/ConsumerKeepRules) | |\n| [LibraryKeepRules](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/LibraryKeepRules) | |\n\n*** ** * ** ***\n\nA container for a collection of files that has the capability to add a single existing file or a group of existing files to the collection\n\nSummary\n-------\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [file](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/ConfigurableFiles#file(kotlin.Any))`(file: `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`)` |\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [files](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/ConfigurableFiles#files(kotlin.Array))`(vararg files: `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`)` |\n\n| ### Public properties ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`\u003c`[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)`\u003e` | [files](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/ConfigurableFiles#files()) |\n\nPublic functions\n----------------\n\n### file\n\n```\n@Incubating\nfun file(file: Any): Unit\n``` \n\n### files\n\n```\n@Incubating\nfun files(vararg files: Any): Unit\n```\n\nPublic properties\n-----------------\n\n### files\n\n```\nval files: MutableList\u003cFile\u003e\n```"]]