# MultipleVariants

# MultipleVariants

<br />

```
interface MultipleVariants : PublishingOptions
```

<br />

*** ** * ** ***

Multi variant publishing options.

## Summary

|                                                                                                                                                                                                                                                                                   ### Public functions                                                                                                                                                                                                                                                                                   ||
|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [allVariants](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/MultipleVariants#allVariants())`()` Publish all the variants to the component.                                                                                                                                                                                                                                                                                                                        |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [includeBuildTypeValues](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/MultipleVariants#includeBuildTypeValues(kotlin.Array))`(vararg buildTypes: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?)` Publish variants to the component based on the specified build types.                                                                                                                                                     |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [includeFlavorDimensionAndValues](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/MultipleVariants#includeFlavorDimensionAndValues(kotlin.String,kotlin.Array))`(dimension: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, vararg values: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?)` Publish variants to the component based on the specified product flavor dimension and values. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| From class[PublishingOptions](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/PublishingOptions) |------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [withJavadocJar](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/PublishingOptions#withJavadocJar())`()` Publish javadoc jar generated from java \& kotlin source as a secondary artifact to a Maven repository. | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [withSourcesJar](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/PublishingOptions#withSourcesJar())`()` Publish java \& kotlin sources jar as a secondary artifact to a Maven repository.                       | |

## Public functions

### allVariants

```
fun allVariants(): Unit
```

Publish all the variants to the component.  

### includeBuildTypeValues

```
fun includeBuildTypeValues(vararg buildTypes: String?): Unit
```

Publish variants to the component based on the specified build types.  

### includeFlavorDimensionAndValues

```
fun includeFlavorDimensionAndValues(dimension: String?, vararg values: String?): Unit
```

Publish variants to the component based on the specified product flavor dimension and values.