api / org.gradle.platform.base.binary / BaseBinarySpec

BaseBinarySpec

@Incubating open class BaseBinarySpec : AbstractBuildableComponentSpec, BinarySpecInternal

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

<init>

BaseBinarySpec()

Functions

create

open static fun <T : BaseBinarySpec> create(publicType: Class<out BinarySpec>, implementationType: Class<T>, componentId: ComponentSpecIdentifier, modelNode: MutableModelNode, componentNode: MutableModelNode, instantiator: Instantiator, taskFactory: ITaskFactory): T

getBuildAbility

fun getBuildAbility(): BinaryBuildAbility

getComponent

open fun getComponent(): ComponentSpec

getId

open fun getId(): LibraryBinaryIdentifier

getInputs

open fun getInputs(): DomainObjectSet<LanguageSourceSet>

getNamingScheme

open fun getNamingScheme(): BinaryNamingScheme

getProjectScopedName

open fun getProjectScopedName(): String

getPublicType

open fun getPublicType(): Class<out BinarySpec>

getSources

open fun getSources(): ModelMap<LanguageSourceSet>

getTasks

open fun getTasks(): BinaryTasksCollection

hasCodependentSources

open fun hasCodependentSources(): Boolean

isBuildable

fun isBuildable(): Boolean

isLegacyBinary

open fun isLegacyBinary(): Boolean

replaceSingleDirectory

open static fun replaceSingleDirectory(dirs: MutableSet<File>, dir: File): Unit

setBuildable

open fun setBuildable(buildable: Boolean): Unit

setNamingScheme

open fun setNamingScheme(namingScheme: BinaryNamingScheme): Unit