# AnnotationProcessor

# AnnotationProcessor

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

<br />

```
@Incubating
interface AnnotationProcessor
```

<br />

*** ** * ** ***

Build-time properties for Java annotation processors inside a[Component](https://developer.android.com/reference/tools/gradle-api/8.3/com/android/build/api/variant/Component)

This is accessed via[JavaCompilation.annotationProcessor](https://developer.android.com/reference/tools/gradle-api/8.3/com/android/build/api/variant/JavaCompilation#annotationProcessor())

## Summary

|                                                                                                                           ### Public properties                                                                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`<`[CommandLineArgumentProvider](https://docs.gradle.org/current/javadoc/org/gradle/process/CommandLineArgumentProvider.html)`>`                                   | [argumentProviders](https://developer.android.com/reference/tools/gradle-api/8.3/com/android/build/api/variant/AnnotationProcessor#argumentProviders()) Options for the annotation processors provided via[CommandLineArgumentProvider](https://docs.gradle.org/current/javadoc/org/gradle/process/CommandLineArgumentProvider.html). |
| [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` | [arguments](https://developer.android.com/reference/tools/gradle-api/8.3/com/android/build/api/variant/AnnotationProcessor#arguments()) Options for the annotation processors provided via key-value pairs.                                                                                                                           |
| [ListProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/ListProperty.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>`                                                                                   | [classNames](https://developer.android.com/reference/tools/gradle-api/8.3/com/android/build/api/variant/AnnotationProcessor#classNames()) Annotation processors to run.                                                                                                                                                               |

## Public properties

### argumentProviders

Added in 7.1.0  

```
val argumentProviders: MutableList<CommandLineArgumentProvider>
```

Options for the annotation processors provided via[CommandLineArgumentProvider](https://docs.gradle.org/current/javadoc/org/gradle/process/CommandLineArgumentProvider.html).  

|                                                                See also                                                                 |
|-----------------------------------------------------------------------------------------------------------------------------------------|---|
| [arguments](https://developer.android.com/reference/tools/gradle-api/8.3/com/android/build/api/variant/AnnotationProcessor#arguments()) |   |

### arguments

Added in 7.1.0  

```
val arguments: MapProperty<String, String>
```

Options for the annotation processors provided via key-value pairs.  

|                                                                        See also                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [argumentProviders](https://developer.android.com/reference/tools/gradle-api/8.3/com/android/build/api/variant/AnnotationProcessor#argumentProviders()) |   |

### classNames

Added in 7.1.0  

```
val classNames: ListProperty<String>
```

Annotation processors to run.

If empty, processors will be automatically discovered.