api / org.gradle.language / ComponentWithDependencies

ComponentWithDependencies

@Incubating interface ComponentWithDependencies : SoftwareComponent

Represents a component with implementation dependencies.

Since
4.6

Functions

getDependencies

abstract fun getDependencies(): ComponentDependencies

Returns the dependencies of this component.

Inheritors

CppBinary

interface CppBinary : ComponentWithObjectFiles, ComponentWithDependencies, BuildableComponent

A binary built from C++ source and linked from the resulting object files.

CppComponent

interface CppComponent : ComponentWithBinaries, ComponentWithDependencies

Configuration for a C++ component, such as a library or executable, defining the source files and private header directories that make up the component. Private headers are those that are visible only to the source files of the component.

A C++ component is composed of some C++ source files that are compiled and then linked into some binary.

An instance of this type is added as a project extension by the C++ plugins.

SwiftBinary

interface SwiftBinary : ComponentWithObjectFiles, ComponentWithDependencies

A binary built from Swift source and linked from the resulting object files.

SwiftComponent

interface SwiftComponent : ComponentWithBinaries, ComponentWithDependencies

Configuration for a Swift component, such as a library or executable, defining the source files that make up the component plus other settings.

Swift component is composed of some Swift source files that are compiled and then linked into some binary.

An instance of this type is added as a project extension by the Swift plugins.