Class WarPlugin

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

public abstract class WarPlugin extends Object implements Plugin<Project>

A Plugin which extends the JavaPlugin to add tasks which assemble a web application into a WAR file.

Since:
0.7
See Also:
  • Field Details

    • PROVIDED_COMPILE_CONFIGURATION_NAME

      public static final String PROVIDED_COMPILE_CONFIGURATION_NAME
      The provided compile configuration name.
      Since:
      0.7
      See Also:
    • PROVIDED_RUNTIME_CONFIGURATION_NAME

      public static final String PROVIDED_RUNTIME_CONFIGURATION_NAME
      The provided runtime configuration name.
      Since:
      0.7
      See Also:
    • WAR_TASK_NAME

      public static final String WAR_TASK_NAME
      The war task name.
      Since:
      0.7
      See Also:
  • Constructor Details

    • WarPlugin

      @Inject public WarPlugin(ObjectFactory objectFactory, org.gradle.api.internal.attributes.AttributesFactory attributesFactory, org.gradle.api.internal.artifacts.dsl.PublishArtifactNotationParser publishArtifactNotationParser)
  • 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