Package: org.gradle.platform.base

## [Java] Interface ComponentSpec

- org.gradle.api.Named

- All Superinterfaces:
    Named

  A software component that is built by a Gradle project.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `DomainObjectSet<BinarySpec>` | `getBinaries()` The binaries that are built for this component.
    `String` | `getDisplayName()` Returns a human-consumable display name for this component.
    `String` | `getProjectPath()` The path the the project containing this component.
    `DomainObjectSet<LanguageSourceSet>` | `getSource()` The source sets that are used to build this component.
    `void` | `source(Object source)` Adds one or more LanguageSourceSets that are used to compile this binary.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `interface Named` | `getName`

- - ### Method Detail

    - #### public DomainObjectSet<BinarySpec> getBinaries()

      The binaries that are built for this component. You can use this to configure the binaries for this component.

    - #### public String getDisplayName()

      Returns a human-consumable display name for this component.

    - #### public String getProjectPath()

      The path the the project containing this component.

    - #### public DomainObjectSet<LanguageSourceSet> getSource()

      The source sets that are used to build this component.

    - #### public void source(Object source)

      Adds one or more LanguageSourceSets that are used to compile this binary.

      This method accepts the following types:
      - A FunctionalSourceSet
      - A LanguageSourceSet
      - A Collection of LanguageSourceSets