# JavaPlatformPlugin

abstract class JavaPlatformPlugin : Plugin<Project> (source)

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

## Constructors

JavaPlatformPlugin
Link copied to clipboard
@Inject
constructor(softwareComponentFactory: SoftwareComponentFactory)

## Properties

API_CONFIGURATION_NAME
Link copied to clipboard
val API_CONFIGURATION_NAME: String = "api"
The api configuration name.
API_ELEMENTS_CONFIGURATION_NAME
Link copied to clipboard
val API_ELEMENTS_CONFIGURATION_NAME: String = "apiElements"
The api elements configuration name.
CLASSPATH_CONFIGURATION_NAME
Link copied to clipboard
val CLASSPATH_CONFIGURATION_NAME: String = "classpath"
The classpath configuration name.
ENFORCED_API_ELEMENTS_CONFIGURATION_NAME
Link copied to clipboard
val ENFORCED_API_ELEMENTS_CONFIGURATION_NAME: String = "enforcedApiElements"
The enforced api elements configuration name.
ENFORCED_RUNTIME_ELEMENTS_CONFIGURATION_NAME
Link copied to clipboard
val ENFORCED_RUNTIME_ELEMENTS_CONFIGURATION_NAME: String = "enforcedRuntimeElements"
The enforced runtime elements configuration name.
RUNTIME_CONFIGURATION_NAME
Link copied to clipboard
val RUNTIME_CONFIGURATION_NAME: String = "runtime"
The runtime configuration name.
RUNTIME_ELEMENTS_CONFIGURATION_NAME
Link copied to clipboard
val RUNTIME_ELEMENTS_CONFIGURATION_NAME: String = "runtimeElements"
The runtime elements configuration name.

## Functions

apply
Link copied to clipboard
open fun apply(project: Project)
Apply this plugin to the given target object.