SwiftCompile - Gradle DSL Version 5.6.1

# SwiftCompile

API Documentation: | `SwiftCompile`

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

Compiles Swift source files into object files.

### Properties

Property | Description
`compilerArgs` | Incubating Additional arguments to provide to the compiler.
`debuggable` | Incubating Should the compiler generate debuggable code?
`macros` | Incubating Macros that should be defined for the compiler.
`moduleFile` | Incubating The location to write the Swift module file to.
`moduleName` | Incubating The name of the module to produce.
`modules` | Incubating The modules required to compile the source.
`objectFileDir` | Incubating The directory where object files will be generated.
`optimized` | Incubating Should the compiler generate optimized code?
`source` | Incubating The source files to be compiled.
`sourceCompatibility` | Incubating The Swift language level to use to compile the source files.
`targetPlatform` | Incubating The platform being compiled for.
`toolChain` | Incubating The tool chain used for compilation.

### Methods

No methods

### Script blocks

No script blocks

### Property details

#### ``ListProperty`<`String`>` `compilerArgs`

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

Additional arguments to provide to the compiler.

#### ``Property`<`Boolean`>` `debuggable`

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

Should the compiler generate debuggable code?

#### ``ListProperty`<`String`>` `macros`

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

Macros that should be defined for the compiler.

Macros do not have values in Swift; they are either present or absent.

#### `RegularFileProperty` `moduleFile`

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

The location to write the Swift module file to.

#### ``Property`<`String`>` `moduleName`

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

The name of the module to produce.

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

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

The modules required to compile the source.

#### `DirectoryProperty` `objectFileDir`

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

The directory where object files will be generated.

#### ``Property`<`Boolean`>` `optimized`

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

Should the compiler generate optimized code?

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

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

The source files to be compiled.

#### ``Property`<`SwiftVersion`>` `sourceCompatibility`

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

The Swift language level to use to compile the source files.

#### ``Property`<`NativePlatform`>` `targetPlatform`

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

The platform being compiled for.

#### ``Property`<`NativeToolChain`>` `toolChain`

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

The tool chain used for compilation.