Stay organized with collections
Save and categorize content based on your preferences.
MultipleArtifact
@Incubating abstract class MultipleArtifact<FileTypeT : FileSystemLocation> : Artifact<FileTypeT>
Denotes possible multiple FileSystemLocation instances for this artifact type.
Consumers of artifact types with multiple instances must consume a collection of
FileSystemLocation.
Summary
Public constructors
|
Denotes possible multiple FileSystemLocation instances for this artifact type.
|
Public constructors
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,["# Artifact.MultipleArtifact\n\nMultipleArtifact\n================\n\n```\n@Incubating abstract class MultipleArtifact\u003cFileTypeT : FileSystemLocation\u003e : Artifact\u003cFileTypeT\u003e\n```\n\n|---|---|---------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [com.android.build.api.artifact.Artifact](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact)\\\u003cFileTypeT\\\u003e ||\n| | ↳ | [com.android.build.api.artifact.Artifact.MultipleArtifact](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [MultipleArtifactType](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/MultipleArtifactType) |-------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------| | [MultipleArtifactType](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/MultipleArtifactType) | Public [Artifact](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact) for Android Gradle plugin. | |\n\nDenotes possible multiple [FileSystemLocation](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileSystemLocation.html) instances for this artifact type.\nConsumers of artifact types with multiple instances must consume a collection of\n[FileSystemLocation](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileSystemLocation.html).\n\nSummary\n-------\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E(com.android.build.api.artifact.ArtifactKind,%20com.android.build.api.artifact.Artifact.Category))`(`kind:` `[ArtifactKind](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/ArtifactKind)\u003cFileTypeT\u003e`, `category:` `[Artifact.Category](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact.Category)`)` Denotes possible multiple [FileSystemLocation](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileSystemLocation.html) instances for this artifact type. |\n\n| ### Inherited functions ||\n|---|---|\n| From class [Artifact](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact) |----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getFileSystemLocationName](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact#getFileSystemLocationName())`()` \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getFolderName](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact#getFolderName())`()` \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [name](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact#name())`()` Provide a unique name for the artifact type. For external plugins defining new types, consider adding the plugin name to the artifact's name to avoid collision with other plugins. \u003cbr /\u003e | ||\n\n| ### Inherited properties ||\n|---|---|\n| From class [Artifact](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact) |-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------| | [Artifact.Category](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact.Category) | [category](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact#category:com.android.build.api.artifact.Artifact.Category) \u003cbr /\u003e | | [ArtifactKind](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/ArtifactKind)\u003cT\u003e | [kind](/reference/tools/gradle-api/4.2/com/android/build/api/artifact/Artifact#kind:com.android.build.api.artifact.ArtifactKind) \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nMultipleArtifact(\n kind: ArtifactKind\u003cFileTypeT\u003e, \n category: Artifact.Category)\n```\n\nDenotes possible multiple [FileSystemLocation](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileSystemLocation.html) instances for this artifact type.\nConsumers of artifact types with multiple instances must consume a collection of\n[FileSystemLocation](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileSystemLocation.html)."]]