Interface SwiftComponent

    • Method Detail

      • getModule

        Property<java.lang.String> getModule()
        Defines the Swift module for this component. The default value is calculated from the project name.
      • getSource

        ConfigurableFileCollection getSource()
        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.

      • getSwiftSource

        FileCollection getSwiftSource()
        Returns the Swift source files of this component, as defined in getSource().
      • getImplementationDependencies

        Configuration getImplementationDependencies()
        Returns the implementation dependencies of this component.
      • getSourceCompatibility

        Property<SwiftVersion> getSourceCompatibility()
        Returns the Swift language level to use to compile the source files.
        Since:
        4.6