Stay organized with collections
Save and categorize content based on your preferences.
LibraryKeepRules
@Incubating interface LibraryKeepRules : ConfigurableFiles
Summary
Public properties |
MutableSet<String> |
Ignore keep rules from listed external dependencies.
|
Boolean |
Ignore keep rules from all the external dependencies.
|
Public properties
ignoreFrom
val ignoreFrom: MutableSet<String>
Ignore keep rules from listed external dependencies. External dependencies can be specified via GAV coordinates(e.g. "groupId:artifactId:version") or in the format of "groupId:artifactId" in which case dependencies are ignored as long as they match groupId & artifactId.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# LibraryKeepRules\n================\n\n\n```\n@Incubating interface LibraryKeepRules : ConfigurableFiles\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Public properties ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)`\u003c`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`\u003e` | [ignoreFrom](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/LibraryKeepRules#ignoreFrom()) Ignore keep rules from listed external dependencies. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [ignoreFromAllExternalDependencies](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/LibraryKeepRules#ignoreFromAllExternalDependencies()) Ignore keep rules from all the external dependencies. |\n\n| ### Inherited functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| From class [com.android.build.api.dsl.ConfigurableFiles](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/ConfigurableFiles) |------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `@`[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)`)` | | `@`[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| ### Inherited properties ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| From class [com.android.build.api.dsl.ConfigurableFiles](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/ConfigurableFiles) |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------| | [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 properties\n-----------------\n\n### ignoreFrom\n\n```\nval ignoreFrom: MutableSet\u003cString\u003e\n```\n\nIgnore keep rules from listed external dependencies. External dependencies can be specified via GAV coordinates(e.g. \"groupId:artifactId:version\") or in the format of \"groupId:artifactId\" in which case dependencies are ignored as long as they match groupId \\& artifactId. \n\n### ignoreFromAllExternalDependencies\n\n```\nvar ignoreFromAllExternalDependencies: Boolean\n```\n\nIgnore keep rules from all the external dependencies."]]