# Class DistributionPlugin

java.lang.Object
org.gradle.api.distribution.plugins.DistributionPlugin

All Implemented Interfaces:
  `Plugin<Project>`

public abstract class DistributionPlugin extends Object implements Plugin<Project>

Applies the `DistributionBasePlugin` and adds a conventional `main` distribution.

Since:
  1.5
See Also:
  - Distribution plugin reference

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `MAIN_DISTRIBUTION_NAME`
  Name of the main distribution
  `static final String`
  `TASK_INSTALL_NAME`
  The name of the install task for the main distribution.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DistributionPlugin()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `apply(Project project)`
  Apply this plugin to the given target object.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### MAIN_DISTRIBUTION_NAME

    public static final String MAIN_DISTRIBUTION_NAME
    Name of the main distribution
    Since:
      2.14
    See Also:
      - Constant Field Values

  - ### TASK_INSTALL_NAME

    public static final String TASK_INSTALL_NAME
    The name of the install task for the main distribution.
    Since:
      2.14
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### DistributionPlugin

    public DistributionPlugin()

- ## Method Details

  - ### apply

    public void apply(Project project)
    Description copied from interface: `Plugin`
    Apply this plugin to the given target object.
    Specified by:
      `apply` in interface `Plugin<Project>`
    Parameters:
      `project` - The target object