Gradle Artifact Publishing Concepts: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 28: | Line 28: | ||
=Declaring an Artifact= | =Declaring an Artifact= | ||
{{External|https://docs.gradle.org/current/userguide/artifact_management.html#sec:archive_task_artifacts}} | |||
=Publishing an Artifact= | =Publishing an Artifact= |
Revision as of 18:53, 15 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.
The "archives" configuration is the standard configuration to assign artifacts to. The Java plugin automatically assigns the default jar to this configuration.
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.