Gradle Distribution Plugin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 11: Line 11:
=Overview=
=Overview=


The Distribution plugin builds archives that serve as distributions of the project. They typically contain the executable application and other supporting files, such as the documentation. The Distribution plugin is part of the [[Gradle_Application_Plugin#Overview|Application plugin]] flow. The plugin adds an [[Gradle_Concepts#Extensions|extension]] named "distribution"
The Distribution plugin builds archives that serve as distributions of the project. They typically contain the executable application and other supporting files, such as the documentation. The Distribution plugin is part of the [[Gradle_Application_Plugin#Overview|Application plugin]] flow. The plugin adds an [[Gradle_Concepts#Extensions|extension]] named "distributions" of type [https://docs.gradle.org/4.7/dsl/org.gradle.api.distribution.DistributionContainer.html DistributionContainer]. It also creates a single distribution in the distributions container, named "main". [[#Multiple_Distributions|Multiple distributions]] can be configured.
 
The distribution files are created in $buildDir/distributions/$project.name-$project.version.<ext>.
 
 
 
=Multiple Distributions=
 
<font color=darkgray>See "Adding extra distributions" in documentation</font>.


=Building Custom Files with the Distribution=
=Building Custom Files with the Distribution=

Revision as of 22:51, 28 July 2018

External

Internal


Overview

The Distribution plugin builds archives that serve as distributions of the project. They typically contain the executable application and other supporting files, such as the documentation. The Distribution plugin is part of the Application plugin flow. The plugin adds an extension named "distributions" of type DistributionContainer. It also creates a single distribution in the distributions container, named "main". Multiple distributions can be configured.

The distribution files are created in $buildDir/distributions/$project.name-$project.version.<ext>.


Multiple Distributions

See "Adding extra distributions" in documentation.

Building Custom Files with the Distribution