Stay organized with collections
Save and categorize content based on your preferences.
SingleArtifact
@Incubating abstract class SingleArtifact<FileTypeT : FileSystemLocation> : Artifact<FileTypeT>
Known Indirect Subclasses
|
Denotes a single FileSystemLocation instance of this artifact type at a given time.
Single artifact types can be transformed or replaced but never appended.
Summary
Public constructors
|
Denotes a single FileSystemLocation instance of this artifact type at a given time.
|
Public constructors
<init>
SingleArtifact(kind: ArtifactKind<FileTypeT>)
Denotes a single FileSystemLocation instance of this artifact type at a given time.
Single artifact types can be transformed or replaced but never appended.
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.SingleArtifact\n\nSingleArtifact\n==============\n\n```\n@Incubating abstract class SingleArtifact\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.1/com/android/build/api/artifact/Artifact)\\\u003cFileTypeT\\\u003e ||\n| | ↳ | [com.android.build.api.artifact.Artifact.SingleArtifact](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ArtifactType](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType) |---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------| | [ArtifactType](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType) | Public [Artifact](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/Artifact) for Android Gradle plugin. | |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Indirect Subclasses [ArtifactType.APK](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.APK), [ArtifactType.BUNDLE](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.BUNDLE), [ArtifactType.MERGED_MANIFEST](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.MERGED_MANIFEST), [ArtifactType.OBFUSCATION_MAPPING_FILE](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.OBFUSCATION_MAPPING_FILE) |-----------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------| | [ArtifactType.APK](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.APK) | APK directory where final APK files will be located. | | [ArtifactType.BUNDLE](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.BUNDLE) | \u003cbr /\u003e | | [ArtifactType.MERGED_MANIFEST](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.MERGED_MANIFEST) | Merged manifest file that will be used in the APK, Bundle and InstantApp packages. | | [ArtifactType.OBFUSCATION_MAPPING_FILE](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.OBFUSCATION_MAPPING_FILE) | \u003cbr /\u003e | |\n\nDenotes a single [FileSystemLocation](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileSystemLocation.html) instance of this artifact type at a given time.\nSingle artifact types can be transformed or replaced but never appended.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E(com.android.build.api.artifact.ArtifactKind))`(`kind:` `[ArtifactKind](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactKind)\u003cFileTypeT\u003e`)` Denotes a single [FileSystemLocation](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileSystemLocation.html) instance of this artifact type at a given time. |\n\n| ### Inherited functions ||\n|---|---|\n| From class [Artifact](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/Artifact) |----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getFileSystemLocationName](/reference/tools/gradle-api/4.1/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.1/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.1/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.1/com/android/build/api/artifact/Artifact) |------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------| | [ArtifactKind](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactKind)\u003cT\u003e | [kind](/reference/tools/gradle-api/4.1/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```\nSingleArtifact(kind: ArtifactKind\u003cFileTypeT\u003e)\n```\n\nDenotes a single [FileSystemLocation](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileSystemLocation.html) instance of this artifact type at a given time.\nSingle artifact types can be transformed or replaced but never appended."]]