Class JavaPlatformPlugin

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

public abstract class JavaPlatformPlugin extends 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:
  • Field Details

    • API_CONFIGURATION_NAME

      public static final String API_CONFIGURATION_NAME
      The api configuration name.
      Since:
      5.2
      See Also:
    • RUNTIME_CONFIGURATION_NAME

      public static final String RUNTIME_CONFIGURATION_NAME
      The runtime configuration name.
      Since:
      5.2
      See Also:
    • API_ELEMENTS_CONFIGURATION_NAME

      public static final String API_ELEMENTS_CONFIGURATION_NAME
      The api elements configuration name.
      Since:
      5.2
      See Also:
    • RUNTIME_ELEMENTS_CONFIGURATION_NAME

      public static final String RUNTIME_ELEMENTS_CONFIGURATION_NAME
      The runtime elements configuration name.
      Since:
      5.2
      See Also:
    • ENFORCED_API_ELEMENTS_CONFIGURATION_NAME

      public static final String ENFORCED_API_ELEMENTS_CONFIGURATION_NAME
      The enforced api elements configuration name.
      Since:
      5.2
      See Also:
    • ENFORCED_RUNTIME_ELEMENTS_CONFIGURATION_NAME

      public static final String ENFORCED_RUNTIME_ELEMENTS_CONFIGURATION_NAME
      The enforced runtime elements configuration name.
      Since:
      5.2
      See Also:
    • CLASSPATH_CONFIGURATION_NAME

      public static final String CLASSPATH_CONFIGURATION_NAME
      The classpath configuration name.
      Since:
      5.2
      See Also:
  • Constructor Details

  • 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