MultipleArtifact.PRE_COMPILATION_CLASSES

Added in 9.0.0-alpha12

@Incubating
object MultipleArtifact.PRE_COMPILATION_CLASSES : MultipleArtifact, Artifact.Replaceable, Artifact.Appendable, Artifact.Transformable


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 ScopedArtifact.CLASSES for the com.android.build.api.variant.ScopedArtifacts.Scope.PROJECT scope.

Summary

Inherited functions

From com.android.build.api.artifact.Artifact
open String
open String
String

Provide a unique name for the artifact type.