Package org.gradle.api.plugins

## Class JavaPlatformPlugin

- java.lang.Object
- - org.gradle.api.plugins.JavaPlatformPlugin

- All Implemented Interfaces:
    `Plugin<Project>`

      public abstract class JavaPlatformPlugin
      extends java.lang.Object
      implements Plugin<Project>

  The Java platform plugin allows building platform components for Java, which are usually published as BOM files (for Maven) or Gradle platforms (Gradle metadata).
  Since:
    5.2
  See Also:
    Java Platform plugin reference

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static java.lang.String` | `API_CONFIGURATION_NAME` |
    `static java.lang.String` | `API_ELEMENTS_CONFIGURATION_NAME` |
    `static java.lang.String` | `CLASSPATH_CONFIGURATION_NAME` |
    `static java.lang.String` | `ENFORCED_API_ELEMENTS_CONFIGURATION_NAME` |
    `static java.lang.String` | `ENFORCED_RUNTIME_ELEMENTS_CONFIGURATION_NAME` |
    `static java.lang.String` | `RUNTIME_CONFIGURATION_NAME` |
    `static java.lang.String` | `RUNTIME_ELEMENTS_CONFIGURATION_NAME` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `JavaPlatformPlugin​(SoftwareComponentFactory softwareComponentFactory)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `apply​(Project project)` | Apply this plugin to the given target object.

    - ### Methods inherited from class java.lang.Object

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

- - ### Field Detail

    - #### API_CONFIGURATION_NAME

          public static final java.lang.String API_CONFIGURATION_NAME

      See Also:
        Constant Field Values

    - #### RUNTIME_CONFIGURATION_NAME

          public static final java.lang.String RUNTIME_CONFIGURATION_NAME

      See Also:
        Constant Field Values

    - #### API_ELEMENTS_CONFIGURATION_NAME

          public static final java.lang.String API_ELEMENTS_CONFIGURATION_NAME

      See Also:
        Constant Field Values

    - #### RUNTIME_ELEMENTS_CONFIGURATION_NAME

          public static final java.lang.String RUNTIME_ELEMENTS_CONFIGURATION_NAME

      See Also:
        Constant Field Values

    - #### ENFORCED_API_ELEMENTS_CONFIGURATION_NAME

          public static final java.lang.String ENFORCED_API_ELEMENTS_CONFIGURATION_NAME

      See Also:
        Constant Field Values

    - #### ENFORCED_RUNTIME_ELEMENTS_CONFIGURATION_NAME

          public static final java.lang.String ENFORCED_RUNTIME_ELEMENTS_CONFIGURATION_NAME

      See Also:
        Constant Field Values

    - #### CLASSPATH_CONFIGURATION_NAME

          public static final java.lang.String CLASSPATH_CONFIGURATION_NAME

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### JavaPlatformPlugin

          @Inject
          public JavaPlatformPlugin​(SoftwareComponentFactory softwareComponentFactory)

  - ### Method Detail

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