@Incubating public class DefaultLibrarySpec extends Object implements LibrarySpec
LibrarySpec
must extend this type.Named.Namer
Constructor and Description |
---|
DefaultLibrarySpec() |
Modifier and Type | Method and Description |
---|---|
static <T extends DefaultLibrarySpec> |
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.
|
FunctionalSourceSet |
getMainSource() |
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.
|
void |
source(Object sources)
Adds one or more
LanguageSourceSet s that are used to compile this binary. |
String |
toString() |
public static <T extends DefaultLibrarySpec> T create(Class<T> type, ComponentSpecIdentifier identifier, FunctionalSourceSet mainSourceSet, org.gradle.internal.reflect.Instantiator instantiator)
public String getName()
Named
Must be constant for the life of the object.
public String getProjectPath()
ComponentSpec
getProjectPath
in interface ComponentSpec
public String getDisplayName()
ComponentSpec
getDisplayName
in interface ComponentSpec
public DomainObjectSet<LanguageSourceSet> getSource()
ComponentSpec
getSource
in interface ComponentSpec
public void source(Object sources)
ComponentSpec
LanguageSourceSet
s that are used to compile this binary.
This method accepts the following types:
FunctionalSourceSet
LanguageSourceSet
LanguageSourceSet
ssource
in interface ComponentSpec
public DomainObjectSet<BinarySpec> getBinaries()
ComponentSpec
getBinaries
in interface ComponentSpec
public FunctionalSourceSet getMainSource()