BaseComponentSpec

open class BaseComponentSpec : DefaultComponentSpec, GeneralComponentSpec(source)

Base class that may be used for custom GeneralComponentSpec 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

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val identifier: ComponentSpecIdentifier

Functions

Link copied to clipboard
open fun <T : DefaultComponentSpec?> create(publicType: Class<out ComponentSpec>, implementationType: Class<T>, identifier: ComponentSpecIdentifier, modelNode: MutableModelNode): T
Link copied to clipboard
The variants produced for this component spec.
Link copied to clipboard
abstract fun getDisplayName(): String
Returns a human-consumable display name for this element.
Link copied to clipboard
abstract fun getName(): String
open fun getName(): String
Returns the name of this element.
Link copied to clipboard
abstract fun getProjectPath(): String
The path to the project containing this component.
Link copied to clipboard
The source sets for this component.
Link copied to clipboard
The variants of this component.
Link copied to clipboard
open fun toString(): String