api / org.gradle.platform.base / PlatformAwareComponentSpec

PlatformAwareComponentSpec

@Incubating interface PlatformAwareComponentSpec : VariantComponentSpec

Defines Platform specific operations for ComponentSpecs

Functions

targetPlatform

abstract fun targetPlatform(targetPlatform: String): Unit

Specifies a platform that this component should be built be for.

Inherited Functions

getBinaries

abstract fun getBinaries(): ModelMap<BinarySpec>

The variants produced for this component spec.

Inheritors

JvmLibrarySpec

interface JvmLibrarySpec : LibrarySpec, JvmComponentSpec, PlatformAwareComponentSpec

Definition of a JVM library component that is to be built by Gradle.

PlayPlatformAwareComponentSpec

interface PlayPlatformAwareComponentSpec : PlatformAwareComponentSpec

Platform aware aspect of a Play Framework software component.

TargetedNativeComponent

interface TargetedNativeComponent : PlatformAwareComponentSpec, NativeComponentSpec

A native component that can be configured to target certain variant dimensions. This functionality is a temporary workaround to eliminate configuration of unnecessary domain objects and tasks.