gradle-maven-publish-plugin / com.vanniktech.maven.publish / MavenPublishPluginExtension

MavenPublishPluginExtension

open class MavenPublishPluginExtension

Extension for maven publish plugin.

Since
0.1.0

Constructors

<init>

MavenPublishPluginExtension(project: Project)

Extension for maven publish plugin.

Properties

androidVariantToPublish

var androidVariantToPublish: String

The Android library variant that should be published. Projects not using any product flavors, that just want to publish the release build type can use the default.

nexusOptions

var nexusOptions: NexusOptions

Allows to promote repositories without connecting to the nexus instance console.

releaseSigningEnabled

var releaseSigningEnabled: Boolean

Whether release artifacts should be signed before getting published.

targets

val targets: NamedDomainObjectContainer<MavenPublishTarget>

Allows to add additional MavenPublishTargets to publish to multiple repositories.

Functions

nexus

fun nexus(action: Action<NexusOptions>): Unit

Allows to promote repositories without connecting to the nexus instance console.

targets

fun targets(closure: Closure<*>): Unit

Allows to add additional MavenPublishTargets to publish to multiple repositories.