For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

MavenPublishPlugin

Adds the ability to publish in the Maven format to Maven repositories.

Since

1.4

See also

Constructors

Link copied to clipboard
@Inject
constructor(instantiatorFactory: InstantiatorFactory, objectFactory: ObjectFactory, dependencyMetaDataProvider: DependencyMetaDataProvider, fileResolver: FileResolver, taskDependencyFactory: TaskDependencyFactory, publishArtifactNotationParser: PublishArtifactNotationParser)

Properties

Link copied to clipboard
val PUBLISH_LOCAL_LIFECYCLE_TASK_NAME: String = "publishToMavenLocal"
The publish local lifecycle task name.

Functions

Link copied to clipboard
open fun apply(project: Project)
Apply this plugin to the given target object.