Gradle Maven Publish Plugin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 18: Line 18:
="publishing" Extension=
="publishing" Extension=


The plugin creates a "publishing" [[Gradle_Concepts#Extension|extension]].
The plugin creates a "publishing" [[Gradle_Concepts#Extension|extension]] of type [https://docs.gradle.org/current/dsl/org.gradle.api.publish.PublishingExtension.html PublishingExtension].


=Publishing to a Maven Repository=
=Publishing to a Maven Repository=

Revision as of 19:46, 15 May 2018

External

Internal

Overview

"maven-publish" is an newer alternative to publishing with Maven Plugin. It generates Maven metadata and pushes the artifacts and the metadata to a Maven repository.

apply plugin: 'maven-publish'

"publishing" Extension

The plugin creates a "publishing" extension of type PublishingExtension.

Publishing to a Maven Repository