Package: org.gradle.runtime.base

## [Java] Interface BinarySpec

- Named

- All Superinterfaces:
    BuildableModelElement, Named

  Represents a binary artifact that is the result of building a project component.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `String` | `getDisplayName()` Returns a human-consumable display name for this binary.
    `DomainObjectSet<LanguageSourceSet>` | `getSource()` The source sets used to compile this binary.
    `DomainObjectSet<Task>` | `getTasks()` The set of tasks associated with this binary.
    `boolean` | `isBuildable()` Can this binary be built in the current environment?
    `void` | `source(Object source)` Adds one or more LanguageSourceSets that are used to compile this binary.

- - ### Method Detail

    - #### public String getDisplayName()

      Returns a human-consumable display name for this binary.

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

      The source sets used to compile this binary.

    - #### public DomainObjectSet<Task> getTasks()

      The set of tasks associated with this binary.

    - #### public boolean isBuildable()

      Can this binary be built in the current environment?

    - #### 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