# BaseBinarySpec

@Incubating
open class BaseBinarySpec : AbstractBuildableComponentSpec, BinarySpecInternal(source)

### Deprecated

The Gradle software model is deprecated and will be removed in Gradle 10. Use the new component model (e.g. `cpp-application`, `cpp-library`, `swift-application`, `swift-library`, `xctest`) instead.

Base class that may be used for custom BinarySpec implementations. However, it is generally better to use an interface annotated with org.gradle.model.Managed and not use an implementation class at all.

## Constructors

BaseBinarySpec
Link copied to clipboard
constructor()

## Properties

buildTask
Link copied to clipboard
open var buildTask: Task
checkTask
Link copied to clipboard
open var checkTask: Task
identifier
Link copied to clipboard
val identifier: ComponentSpecIdentifier
namingScheme
Link copied to clipboard
open var namingScheme: BinaryNamingScheme
publicType
Link copied to clipboard
val publicType: Class<out BinarySpec>
tasks
Link copied to clipboard
val tasks: BinaryTasksCollection

## Functions

builtBy
Link copied to clipboard
abstract fun builtBy(tasks: Array<Any>)
open fun builtBy(tasks: Array<Any>)
Adds tasks required to build this component.
checkedBy
Link copied to clipboard
abstract fun checkedBy(tasks: Array<Any>)
open fun checkedBy(tasks: Array<Any>)
Adds tasks required to check this component.
create
Link copied to clipboard
open fun <T : BaseBinarySpec?> create(publicType: Class<out BinarySpec>, implementationType: Class<T>, componentId: ComponentSpecIdentifier, modelNode: MutableModelNode, @Nullable componentNode: @Nullable MutableModelNode, instantiator: Instantiator, taskInstantiator: NamedEntityInstantiator<Task>, collectionCallbackActionDecorator: CollectionCallbackActionDecorator, domainObjectCollectionFactory: DomainObjectCollectionFactory): T
Creates a BaseBinarySpec.
getBuildAbility
Link copied to clipboard
fun getBuildAbility(): BinaryBuildAbility
getBuildDependencies
Link copied to clipboard
abstract fun getBuildDependencies(): TaskDependency
open fun getBuildDependencies(): TaskDependency
Returns a dependency which contains the tasks which build this artifact.
getComponent
Link copied to clipboard
@Nullable
open fun getComponent(): @Nullable ComponentSpec
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
open fun getDisplayName(): String
Returns a human-consumable display name for this element.
getId
Link copied to clipboard
open fun getId(): LibraryBinaryIdentifier
getInputs
Link copied to clipboard
open fun getInputs(): DomainObjectSet<LanguageSourceSet>
Returns all inputs of the binary.
getName
Link copied to clipboard
abstract fun getName(): String
open fun getName(): String
Returns the name of this element.
getNamingScheme
Link copied to clipboard
abstract fun getNamingScheme(): BinaryNamingScheme
getProjectPath
Link copied to clipboard
abstract fun getProjectPath(): String
open fun getProjectPath(): String
The path to the project containing this component.
getProjectScopedName
Link copied to clipboard
open fun getProjectScopedName(): String
getPublicType
Link copied to clipboard
abstract fun getPublicType(): Class<out BinarySpec>
getSources
Link copied to clipboard
open fun getSources(): ModelMap<LanguageSourceSet>
The sources owned by this binary.
hasBuildDependencies
Link copied to clipboard
abstract fun hasBuildDependencies(): Boolean
open fun hasBuildDependencies(): Boolean
hasCodependentSources
Link copied to clipboard
open fun hasCodependentSources(): Boolean
isBuildable
Link copied to clipboard
fun isBuildable(): Boolean
Can this binary be built in the current environment?
isLegacyBinary
Link copied to clipboard
open fun isLegacyBinary(): Boolean
replaceSingleDirectory
Link copied to clipboard
open fun replaceSingleDirectory(dirs: Set<File>, dir: File)
setBuildable
Link copied to clipboard
open fun setBuildable(buildable: Boolean)
setNamingScheme
Link copied to clipboard
abstract fun setNamingScheme(namingScheme: BinaryNamingScheme)
toString
Link copied to clipboard
open fun toString(): String