Gradle Maven Publish Plugin: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
=Overview= | =Overview= | ||
"maven-publish" is an newer alternative to publishing with [[Gradle Maven Plugin#Overview|Maven Plugin]], using "publish" tasks instead of Maven Plugin "[[Gradle_Maven_Plugin#Overview|Upload]]" tasks. The plugin generates Maven metadata and publishes the generated metadata and the associated artifacts to Maven repositories. The concepts behind publishing with "maven-publish", and the | "maven-publish" is an newer alternative to publishing with [[Gradle Maven Plugin#Overview|Maven Plugin]], using "publish" tasks instead of Maven Plugin "[[Gradle_Maven_Plugin#Overview|Upload]]" tasks. The plugin generates Maven metadata and publishes the generated metadata and the associated artifacts to Maven repositories. The concepts behind publishing with "maven-publish", and the plugin mechanics, are described in the [[#Concepts_and_Plugin_Mechanics|Concepts and Plugin Mechanics]] below. A step by step procedure is available under the [[#Procedure|Procedure]] section. | ||
The plugin is activated with: | The plugin is activated with: |
Revision as of 21:33, 15 May 2018
External
Internal
Overview
"maven-publish" is an newer alternative to publishing with Maven Plugin, using "publish" tasks instead of Maven Plugin "Upload" tasks. The plugin generates Maven metadata and publishes the generated metadata and the associated artifacts to Maven repositories. The concepts behind publishing with "maven-publish", and the plugin mechanics, are described in the Concepts and Plugin Mechanics below. A step by step procedure is available under the Procedure section.
The plugin is activated with:
apply plugin: 'maven-publish'