# BinarySpec

API Documentation: | `BinarySpec`

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

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

### Properties

Property | Description
`buildable` | Incubating Can this binary be built in the current environment?
`source` | Incubating The source sets used to compile this binary.

### Methods

Method | Description
`source(source)` | Incubating Adds one or more `LanguageSourceSet`s that are used to compile this binary.

### Script blocks

No script blocks

### Property details

#### `boolean` `buildable` (read-only)

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

Can this binary be built in the current environment?

#### ``DomainObjectSet`<`LanguageSourceSet`>` `source` (read-only)

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

The source sets used to compile this binary.

### Method details

#### `void` `source`(`Object` source)

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

Adds one or more `LanguageSourceSet`s that are used to compile this binary.

This method accepts the following types:

- A `FunctionalSourceSet`
- A `LanguageSourceSet`
- A Collection of `LanguageSourceSet`s