# Class EarPlugin

java.lang.Object
org.gradle.plugins.ear.EarPlugin

All Implemented Interfaces:
  `Plugin<Project>`

public abstract class EarPlugin extends Object implements Plugin<Project>

A `Plugin` with tasks which assemble a web application into a EAR file.

Since:
  1.0
See Also:
  - EAR plugin reference

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `(package private) static final String`
  `DEFAULT_LIB_DIR_NAME`
  `static final String`
  `DEPLOY_CONFIGURATION_NAME`
  The deploy configuration name.
  `static final String`
  `EAR_TASK_NAME`
  The ear task name.
  `static final String`
  `EARLIB_CONFIGURATION_NAME`
  The earlib configuration name.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `EarPlugin(ObjectFactory objectFactory, org.gradle.api.plugins.jvm.internal.JvmPluginServices jvmPluginServices)`
  Injects an `ObjectFactory`

- ## 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

  - ### EAR_TASK_NAME

    public static final String EAR_TASK_NAME
    The ear task name.
    Since:
      1.0
    See Also:
      - Constant Field Values

  - ### DEPLOY_CONFIGURATION_NAME

    public static final String DEPLOY_CONFIGURATION_NAME
    The deploy configuration name.
    Since:
      1.0
    See Also:
      - Constant Field Values

  - ### EARLIB_CONFIGURATION_NAME

    public static final String EARLIB_CONFIGURATION_NAME
    The earlib configuration name.
    Since:
      1.0
    See Also:
      - Constant Field Values

  - ### DEFAULT_LIB_DIR_NAME

    static final String DEFAULT_LIB_DIR_NAME
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### EarPlugin

    @Inject public EarPlugin(ObjectFactory objectFactory, org.gradle.api.plugins.jvm.internal.JvmPluginServices jvmPluginServices)
    Injects an `ObjectFactory`
    Since:
      4.2

- ## 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