Gradle Artifact Publishing Concepts: Difference between revisions
No edit summary |
|||
Line 7: | Line 7: | ||
=Internal= | =Internal= | ||
* [[ | * [[Gradle_Concepts#Artifacts_and_Artifact_Publishing|Gradle Concepts]] | ||
* [[Gradle Maven Publish Plugin#Overview|Maven Publish Plugin]] | * [[Gradle Maven Publish Plugin#Overview|Maven Publish Plugin]] | ||
* [[Gradle Artifact Publishing Operations#Overview|Gradle Publishing Operations]] | * [[Gradle Artifact Publishing Operations#Overview|Gradle Publishing Operations]] |
Revision as of 00:17, 20 May 2018
External
- https://docs.gradle.org/current/userguide/artifact_management.html
- https://docs.gradle.org/current/userguide/publishing_maven.html
- https://docs.gradle.org/current/userguide/maven_plugin.html#uploading_to_maven_repositories
Internal
Overview
Publishing plugins, such as Maven, define publishing tasks, that can be configured in build.gradle.
Artifact
Projects use Gradle to produce artifacts, also referred to as publication artifacts. Artifacts of a project are the files the project provides to the outside world.
Configuration
The configurations used to specify dependencies are also used to specify publishing artifacts. There are two configurations introduced by the Java plugin that are relevant to artifact generation and publishing: archives and runtime. Their relationship with artifact publishing is explained in the Java plugin page. Any custom archive created as part of the build are not automatically assigned to any configuration. If such as assignment is desired, it will have to be explicitly declared.
Declaring an Artifact
Publishing an Artifact
Publishing to a Maven Repository
- Pre-Gradle 1.3 Way: Publishing to a Maven Repository with Maven Plugin
- Gradle 1.3 onward: Publishing to a Maven Repository with maven-publish Plugin