Class BaseBinarySpec
java.lang.Object
org.gradle.platform.base.component.internal.AbstractComponentSpec
org.gradle.api.internal.AbstractBuildableComponentSpec
org.gradle.platform.base.binary.BaseBinarySpec
- All Implemented Interfaces:
Buildable, BuildableComponentSpec, CheckableComponentSpec, Named, ModelElement, Binary, BinarySpec, ComponentSpec, org.gradle.platform.base.internal.BinarySpecInternal, org.gradle.platform.base.internal.ComponentSpecInternal
@Incubating
@Deprecated
public class BaseBinarySpec
extends org.gradle.api.internal.AbstractBuildableComponentSpec
implements org.gradle.platform.base.internal.BinarySpecInternal
Deprecated.
Base class that may be used for custom
BinarySpec implementations. However, it is generally better to use an
interface annotated with Managed and not use an implementation class at all.-
Nested Class Summary
Nested classes/interfaces inherited from interface Named
Named.Namer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends BaseBinarySpec>
Tcreate(Class<? extends BinarySpec> publicType, Class<T> implementationType, org.gradle.platform.base.internal.ComponentSpecIdentifier componentId, org.gradle.model.internal.core.MutableModelNode modelNode, @Nullable org.gradle.model.internal.core.MutableModelNode componentNode, org.gradle.internal.reflect.Instantiator instantiator, org.gradle.model.internal.core.NamedEntityInstantiator<Task> taskInstantiator, org.gradle.api.internal.CollectionCallbackActionDecorator collectionCallbackActionDecorator, org.gradle.api.internal.collections.DomainObjectCollectionFactory domainObjectCollectionFactory) Deprecated.Creates aBaseBinarySpec.protected org.gradle.platform.base.internal.BinaryBuildAbilityDeprecated.final org.gradle.platform.base.internal.BinaryBuildAbilityDeprecated.@Nullable ComponentSpecDeprecated.protected <T extends ComponentSpec>
@Nullable TgetComponentAs(Class<T> componentType) Deprecated.getId()Deprecated.Deprecated.Returns all inputs of the binary.org.gradle.platform.base.internal.BinaryNamingSchemeDeprecated.Deprecated.Class<? extends BinarySpec> Deprecated.Deprecated.The sources owned by this binary.getTasks()Deprecated.The set of tasks associated with this binary.booleanDeprecated.final booleanDeprecated.Can this binary be built in the current environment?booleanDeprecated.static voidreplaceSingleDirectory(Set<File> dirs, File dir) Deprecated.voidsetBuildable(boolean buildable) Deprecated.voidsetNamingScheme(org.gradle.platform.base.internal.BinaryNamingScheme namingScheme) Deprecated.Methods inherited from class org.gradle.api.internal.AbstractBuildableComponentSpec
builtBy, checkedBy, getBuildDependencies, getBuildTask, getCheckTask, hasBuildDependencies, setBuildTask, setCheckTaskMethods inherited from class org.gradle.platform.base.component.internal.AbstractComponentSpec
getDisplayName, getIdentifier, getName, getProjectPath, getTypeName, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Binary
getDisplayNameMethods inherited from interface Buildable
getBuildDependenciesMethods inherited from interface BuildableComponentSpec
builtBy, getBuildTask, hasBuildDependencies, setBuildTaskMethods inherited from interface CheckableComponentSpec
checkedBy, getCheckTask, setCheckTaskMethods inherited from interface ComponentSpec
getProjectPathMethods inherited from interface ModelElement
getDisplayName, getName
-
Constructor Details
-
BaseBinarySpec
public BaseBinarySpec()Deprecated.
-
-
Method Details
-
create
public static <T extends BaseBinarySpec> T create(Class<? extends BinarySpec> publicType, Class<T> implementationType, org.gradle.platform.base.internal.ComponentSpecIdentifier componentId, org.gradle.model.internal.core.MutableModelNode modelNode, @Nullable org.gradle.model.internal.core.MutableModelNode componentNode, org.gradle.internal.reflect.Instantiator instantiator, org.gradle.model.internal.core.NamedEntityInstantiator<Task> taskInstantiator, org.gradle.api.internal.CollectionCallbackActionDecorator collectionCallbackActionDecorator, org.gradle.api.internal.collections.DomainObjectCollectionFactory domainObjectCollectionFactory) Deprecated.Creates aBaseBinarySpec.- Since:
- 5.6
-
getId
Deprecated.- Specified by:
getIdin interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getPublicType
Deprecated.- Specified by:
getPublicTypein interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getComponent
Deprecated.- Specified by:
getComponentin interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getComponentAs
Deprecated. -
getProjectScopedName
Deprecated.- Specified by:
getProjectScopedNamein interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
setBuildable
public void setBuildable(boolean buildable) Deprecated.- Specified by:
setBuildablein interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
isBuildable
public final boolean isBuildable()Deprecated.Description copied from interface:BinarySpecCan this binary be built in the current environment?- Specified by:
isBuildablein interfaceBinarySpec
-
getInputs
Deprecated.Description copied from interface:BinarySpecReturns all inputs of the binary. This includes source sets owned by the binary, and other source sets created elsewhere (e.g. inherited from the binary's component).- Specified by:
getInputsin interfaceBinarySpec- Returns:
- all inputs of the binary.
-
getSources
Deprecated.Description copied from interface:BinarySpecThe sources owned by this binary.- Specified by:
getSourcesin interfaceBinarySpec- Returns:
- the sources owned by the binary.
-
getTasks
Deprecated.Description copied from interface:BinarySpecThe set of tasks associated with this binary.- Specified by:
getTasksin interfaceBinarySpec
-
isLegacyBinary
public boolean isLegacyBinary()Deprecated.- Specified by:
isLegacyBinaryin interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getNamingScheme
public org.gradle.platform.base.internal.BinaryNamingScheme getNamingScheme()Deprecated.- Specified by:
getNamingSchemein interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
setNamingScheme
public void setNamingScheme(org.gradle.platform.base.internal.BinaryNamingScheme namingScheme) Deprecated.- Specified by:
setNamingSchemein interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
hasCodependentSources
public boolean hasCodependentSources()Deprecated.- Specified by:
hasCodependentSourcesin interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getBuildAbility
public final org.gradle.platform.base.internal.BinaryBuildAbility getBuildAbility()Deprecated.- Specified by:
getBuildAbilityin interfaceorg.gradle.platform.base.internal.BinarySpecInternal
-
getBinaryBuildAbility
protected org.gradle.platform.base.internal.BinaryBuildAbility getBinaryBuildAbility()Deprecated. -
replaceSingleDirectory
-
cpp-application,cpp-library,swift-application,swift-library,xctest) instead.