Class ApplicationPlugin

java.lang.Object
org.gradle.api.plugins.ApplicationPlugin
All Implemented Interfaces:
Plugin<Project>

public abstract class ApplicationPlugin extends Object implements Plugin<Project>

A Plugin which packages and runs a project as a Java Application.

The plugin can be configured via the JavaApplication extension.

Since:
1.0
See Also:
  • Field Details

    • APPLICATION_PLUGIN_NAME

      public static final String APPLICATION_PLUGIN_NAME
      The application plugin name.
      Since:
      2.14
      See Also:
    • APPLICATION_GROUP

      public static final String APPLICATION_GROUP
      The application group.
      Since:
      2.14
      See Also:
    • TASK_RUN_NAME

      public static final String TASK_RUN_NAME
      The task run name.
      Since:
      2.14
      See Also:
    • TASK_START_SCRIPTS_NAME

      public static final String TASK_START_SCRIPTS_NAME
      The task start scripts name.
      Since:
      2.14
      See Also:
    • TASK_DIST_ZIP_NAME

      public static final String TASK_DIST_ZIP_NAME
      The task dist zip name.
      Since:
      2.14
      See Also:
    • TASK_DIST_TAR_NAME

      public static final String TASK_DIST_TAR_NAME
      The task dist tar name.
      Since:
      2.14
      See Also:
  • Constructor Details

    • ApplicationPlugin

      public ApplicationPlugin()
  • 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
    • getPropertyFactory

      @Inject protected abstract org.gradle.api.internal.provider.PropertyFactory getPropertyFactory()