@Incubating public abstract class BaseComponentSpec extends Object implements org.gradle.platform.base.internal.ComponentSpecInternal
ComponentSpec must extend this type.Named.Namer| Modifier | Constructor and Description |
|---|---|
protected |
BaseComponentSpec() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends BaseComponentSpec> |
create(Class<T> type,
ComponentSpecIdentifier identifier,
FunctionalSourceSet mainSourceSet,
org.gradle.internal.reflect.Instantiator instantiator) |
DomainObjectSet<BinarySpec> |
getBinaries()
The binaries that are built for this component.
|
String |
getDisplayName()
Returns a human-consumable display name for this component.
|
Set<Class<? extends TransformationFileType>> |
getInputTypes() |
String |
getName()
The object's name.
|
String |
getProjectPath()
The path the the project containing this component.
|
DomainObjectSet<LanguageSourceSet> |
getSource()
The source sets that are used to build this component.
|
FunctionalSourceSet |
getSources() |
protected String |
getTypeName() |
void |
sources(Action<? super PolymorphicDomainObjectContainer<LanguageSourceSet>> action)
Configure the source sets used to build this component.
|
String |
toString() |
public static <T extends BaseComponentSpec> T create(Class<T> type, ComponentSpecIdentifier identifier, FunctionalSourceSet mainSourceSet, org.gradle.internal.reflect.Instantiator instantiator)
public String getName()
NamedMust be constant for the life of the object.
public String getProjectPath()
ComponentSpecgetProjectPath in interface ComponentSpecprotected String getTypeName()
public String getDisplayName()
ComponentSpecgetDisplayName in interface ComponentSpecpublic DomainObjectSet<LanguageSourceSet> getSource()
ComponentSpecgetSource in interface ComponentSpecpublic DomainObjectSet<BinarySpec> getBinaries()
ComponentSpecgetBinaries in interface ComponentSpecpublic FunctionalSourceSet getSources()
getSources in interface org.gradle.platform.base.internal.ComponentSpecInternalpublic void sources(Action<? super PolymorphicDomainObjectContainer<LanguageSourceSet>> action)
ComponentSpecsources in interface ComponentSpecpublic Set<Class<? extends TransformationFileType>> getInputTypes()
getInputTypes in interface org.gradle.platform.base.internal.ComponentSpecInternal