Package-level declarations

Types

Link copied to clipboard
@Incubating
class AndroidFusedLibrary : Platform

To be used for com.android.fused-library projects. Applying this creates a publication for the library with empty source and javadoc jars.

Link copied to clipboard
data class AndroidMultiVariantLibrary @JvmOverloads constructor(val sourcesJar: Boolean = true, val publishJavadocJar: Boolean = true, val includedBuildTypeValues: Set<String> = emptySet(), val includedFlavorDimensionsAndValues: Map<String, Set<String>> = emptyMap()) : Platform

To be used for com.android.library projects. Applying this creates a publication for the component of the given variants. Depending on the passed parameters for javadocJar and sourcesJar, -javadoc and -sources jars will be added to the publication.

Link copied to clipboard
data class AndroidSingleVariantLibrary @JvmOverloads constructor(val variant: String = "release", val sourcesJar: Boolean = true, val publishJavadocJar: Boolean = true) : Platform

To be used for com.android.library projects. Applying this creates a publication for the component of the given variant. Depending on the passed parameters for javadocJar and sourcesJar, -javadoc and -sources jars will be added to the publication.

Link copied to clipboard
data class GradlePlugin @JvmOverloads constructor(val javadocJar: JavadocJar, val sourcesJar: Boolean = true) : Platform

To be used for java-gradle-plugin projects. Uses the default publication that gets created by that plugin. Depending on the passed parameters for javadocJar and sourcesJar, -javadoc and -sources jars will be added to the publication.

Link copied to clipboard

To be used for com.gradle.plugin-publish projects. Uses the default publication that gets created by that plugin.

Link copied to clipboard
sealed interface JavadocJar

Specifies how the javadoc jar should be created.

Link copied to clipboard
data class JavaLibrary @JvmOverloads constructor(val javadocJar: JavadocJar, val sourcesJar: Boolean = true) : Platform

To be used for java and java-library projects. Applying this creates a publication for the component called java. Depending on the passed parameters for javadocJar and sourcesJar, -javadoc and -sources jars will be added to the publication.

Link copied to clipboard

To be used for java-platforms projects. Applying this creates a publication for the component called javaPlatform.

Link copied to clipboard
data class KotlinJvm @JvmOverloads constructor(val javadocJar: JavadocJar = JavadocJar.Empty(), val sourcesJar: Boolean = true) : Platform

To be used for org.jetbrains.kotlin.jvm projects. Applying this creates a publication for the component called java. Depending on the passed parameters for javadocJar and sourcesJar, -javadoc and -sources jars will be added to the publication.

Link copied to clipboard

To be used for org.jetbrains.kotlin.multiplatform projects. Uses the default publications that gets created by that plugin, including the automatically created -sources jars. Depending on the passed parameters for javadocJar, -javadoc will be added to the publications.

Link copied to clipboard
abstract class MavenPublishBaseExtension @Inject constructor(project: Project, buildEventsListenerRegistry: BuildEventsListenerRegistry, buildFeatures: BuildFeatures)
Link copied to clipboard
abstract class MavenPublishBasePlugin : Plugin<Project>
Link copied to clipboard
abstract class MavenPublishPlugin : Plugin<Project>
Link copied to clipboard
sealed class Platform

Represents a platform that the plugin supports to publish. For example JavaLibrary, AndroidMultiVariantLibrary or KotlinMultiplatform. When a platform is configured through MavenPublishBaseExtension.configure the plugin will automatically set up the artifacts that should get published, including javadoc and sources jars depending on the option.

Link copied to clipboard

To be used for version-catalog projects. Applying this creates a publication for the component called versionCatalog.