Publishing

interface Publishing<SingleVariantT : SingleVariant>
com.android.build.api.dsl.Publishing

Maven publishing DSL object for configuring options related to publishing Android variants to a Maven repository.

In single variant publishing, each component created by Android Gradle Plugin is only associated with one variant.

LibraryPublishing extends this with options for publishing AAR ApplicationPublishing extends this with options for publishing APK and AAB

Summary

Public methods

abstract Unit
singleVariant(variantName: String)

Publish a variant with single variant publishing mechanism.

abstract Unit
singleVariant(variantName: String, action: SingleVariantT.() -> Unit)

Publish a variant with single variant publishing options.

Public methods

singleVariant

abstract fun singleVariant(variantName: String): Unit

Publish a variant with single variant publishing mechanism.

singleVariant

abstract fun singleVariant(
    variantName: String,
    action: SingleVariantT.() -> Unit
): Unit

Publish a variant with single variant publishing options.