ProductionSwiftComponent - Gradle DSL Version 5.6.1

# ProductionSwiftComponent

API Documentation: | `ProductionSwiftComponent`

Known Subtypes: |
`SwiftApplication`
`SwiftLibrary`

Note: This class is incubating and may change in a future version of Gradle.

Represents a Swift component that is the main product of a project.

### Properties

Property | Description
`binaries` | Incubating The binaries of this component.
`developmentBinary` | Incubating The binary of the component to use as the default for development.
`module` | Incubating Defines the Swift module for this component. The default value is calculated from the project name.
`source` | Incubating Defines the source files or directories of this component. You can add files or directories to this collection. When a directory is added, all source files are included for compilation.
`targetMachines` | Incubating Specifies the target machines this component should be built for. The "machines" extension property (see `TargetMachineFactory`) can be used to construct common operating system and architecture combinations.

### Methods

Method | Description
`source(action)` | Incubating Configures the source files or directories for this component.

### Script blocks

No script blocks

### Property details

#### ``BinaryCollection`<? extends `SoftwareComponent`>` `binaries` (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The binaries of this component.

#### ``Provider`<? extends `SwiftBinary`>` `developmentBinary`

Note: This property is incubating and may change in a future version of Gradle.

The binary of the component to use as the default for development.

#### ``Property`<`String`>` `module`

Note: This property is incubating and may change in a future version of Gradle.

Defines the Swift module for this component. The default value is calculated from the project name.

#### `ConfigurableFileCollection` `source` (read-only)

Note: This property is incubating and may change in a future version of Gradle.

Defines the source files or directories of this component. You can add files or directories to this collection. When a directory is added, all source files are included for compilation.

When this collection is empty, the directory `src/main/swift` is used by default.

#### ``SetProperty`<`TargetMachine`>` `targetMachines`

Note: This property is incubating and may change in a future version of Gradle.

Specifies the target machines this component should be built for. The "machines" extension property (see `TargetMachineFactory`) can be used to construct common operating system and architecture combinations.

For example:

    targetMachines = [machines.linux.x86_64, machines.windows.x86_64]

### Method details

#### `void` `source`(``Action`<? super `ConfigurableFileCollection`>` action)

Note: This method is incubating and may change in a future version of Gradle.

Configures the source files or directories for this component.