setupPublishingSimple

fun Project.setupPublishingSimple(config: PublishingSimpleConfig = PublishingSimpleConfig(this), configuration: MavenPublication.() -> Unit = {}): MavenPublication

Sets up a simple publishing configuration

  1. Applies the maven-publish plugin

  2. If withJavadocSourcesJars is true: call addJavadocSourcesJars

  3. Creates a MavenPublication with the specified config

Return

The MavenPublication that was created

Parameters

config

The configuration for setting up publishing

configuration

The configuration for the publication