ComponentWithBinaries
, ComponentWithDependencies
, ComponentWithTargetMachines
, Named
, SoftwareComponent
ProductionSwiftComponent
, SwiftApplication
, SwiftLibrary
, SwiftXCTestSuite
@Incubating public interface SwiftComponent extends ComponentWithBinaries, ComponentWithDependencies, ComponentWithTargetMachines
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.
Named.Namer
Modifier and Type | Method | Description |
---|---|---|
BinaryCollection<? extends SwiftBinary> |
getBinaries() |
Returns the binaries for this library.
|
Configuration |
getImplementationDependencies() |
Returns the implementation dependencies of this component.
|
Property<String> |
getModule() |
Defines the Swift module for this component.
|
ConfigurableFileCollection |
getSource() |
Defines the source files or directories of this component.
|
Property<SwiftVersion> |
getSourceCompatibility() |
Returns the Swift language level to use to compile the source files.
|
FileCollection |
getSwiftSource() |
Returns the Swift source files of this component, as defined in
getSource() . |
void |
source(Action<? super ConfigurableFileCollection> action) |
Configures the source files or directories for this component.
|
getDependencies
getTargetMachines
Property<String> getModule()
ConfigurableFileCollection getSource()
When this collection is empty, the directory src/main/swift
is used by default.
void source(Action<? super ConfigurableFileCollection> action)
FileCollection getSwiftSource()
getSource()
.BinaryCollection<? extends SwiftBinary> getBinaries()
getBinaries
in interface ComponentWithBinaries
Configuration getImplementationDependencies()
Property<SwiftVersion> getSourceCompatibility()