# MultipleArtifact.PRE_COMPILATION_CLASSES

[View Source](https://cs.android.com/search?q=file:com/android/build/api/artifact/MultipleArtifact.kt+class:com.android.build.api.artifact.MultipleArtifact.PRE_COMPILATION_CLASSES) Added in 9.6.0-alpha03


```
@Incubating
object MultipleArtifact.PRE_COMPILATION_CLASSES : MultipleArtifact<Directory>, Artifact.Replaceable, Artifact.Appendable, Artifact.Transformable
```

<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.Multiple](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Multiple) |||
|   |   | ↳ | [com.android.build.api.artifact.MultipleArtifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/MultipleArtifact)\<[Directory](https://docs.gradle.org/current/javadoc/org/gradle/api/file/Directory.html)\> ||
|   |   |   | ↳ | [com.android.build.api.artifact.MultipleArtifact.PRE_COMPILATION_CLASSES](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/MultipleArtifact.PRE_COMPILATION_CLASSES) |

*** ** * ** ***

Directories containing generated code that will be added to compile classpath for the module.

It is not possible to register such code generator through the DSL, one must use this Variant API.

Classes added to this artifact will be used to compile Java classes and Kotlin classes present in the module. This is however limited to using the built-in kotlin compiler and is not available when using the deprecated KAGP plugin from JetBrains.

Classes added to this artifacts will also be added to the `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ScopedArtifact.CLASSES` for the `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/ScopedArtifacts.Scope#PROJECT` scope.

## Summary

### 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()` From [com.android.build.api.artifact.MultipleArtifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/MultipleArtifact) `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<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/MultipleArtifact#attributeKeys()`