# ScopedArtifact

[View Source](https://cs.android.com/search?q=file:com/android/build/api/artifact/ScopedArtifact.kt+class:com.android.build.api.artifact.ScopedArtifact) Added in 7.4.0


```
sealed class ScopedArtifact : Artifact.Single<Directory>
```

<br />

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||
| ↳ | [com.android.build.api.artifact.Artifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact) |||
|   | ↳ | [com.android.build.api.artifact.Artifact.Single](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Single)\<[Directory](https://docs.gradle.org/current/javadoc/org/gradle/api/file/Directory.html)\> ||
|   |   | ↳ | [com.android.build.api.artifact.ScopedArtifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact) |

Known direct subclasses [ScopedArtifact.CLASSES](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact.CLASSES), [ScopedArtifact.JAVA_RES](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact.JAVA_RES), [ScopedArtifact.POST_COMPILATION_CLASSES](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact.POST_COMPILATION_CLASSES)

|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact.CLASSES` | .class files, result of sources compilation and/or external dependencies depending on the scope; includes users' transformation, but does not include Jacoco instrumentation |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact.JAVA_RES` |   |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact.POST_COMPILATION_CLASSES` | .class files, result of sources compilation and/or external dependencies depending on the scope |

*** ** * ** ***

List of ScopedArtifacts.Scope artifacts.

## Summary

| ### Nested types |
|---|
| `object https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact.CLASSES : https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact, https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Appendable, https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Transformable, https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Replaceable` .class files, result of sources compilation and/or external dependencies depending on the scope; includes users' transformation, but does not include Jacoco instrumentation |
| `object https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact.JAVA_RES : https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact, https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Appendable, https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Transformable, https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Replaceable` |
| `@https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html object https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact.POST_COMPILATION_CLASSES : https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact` .class files, result of sources compilation and/or external dependencies depending on the scope |

| ### Protected constructors |
|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact#ScopedArtifact()()` |

### Inherited functions

From [com.android.build.api.artifact.Artifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact) `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact#getFileSystemLocationName()()` `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact#getFolderName()()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact#name()()`

Provide a unique name for the artifact type.

### Inherited properties

From [com.android.build.api.artifact.Artifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact) `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Category` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact#category()` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ArtifactKind<https://docs.gradle.org/current/javadoc/org/gradle/api/file/Directory.html>` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact#kind()`

## Protected constructors

### ScopedArtifact

```
protected ScopedArtifact()
```