@Incubating public interface BinarySpec extends BuildableModelElement, Named
Named.Namer
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Returns a human-consumable display name for this binary.
|
DomainObjectSet<LanguageSourceSet> |
getSource()
The source sets used to compile this binary.
|
BinaryTasksCollection |
getTasks()
The set of tasks associated with this binary.
|
boolean |
isBuildable()
Can this binary be built in the current environment?
|
void |
source(Object source)
Adds one or more
LanguageSourceSet s that are used to compile this binary. |
void |
sources(Action<? super PolymorphicDomainObjectContainer<LanguageSourceSet>> action)
Configures the source sets used to build this binary.
|
void |
tasks(Action<? super BinaryTasksCollection> action)
Configures the tasks that build this binary.
|
builtBy, getBuildTask, hasBuildDependencies, setBuildTask
getBuildDependencies
String getDisplayName()
boolean isBuildable()
void source(Object source)
LanguageSourceSet
s that are used to compile this binary. This method accepts the following types:
FunctionalSourceSet
LanguageSourceSet
LanguageSourceSet
sDomainObjectSet<LanguageSourceSet> getSource()
void sources(Action<? super PolymorphicDomainObjectContainer<LanguageSourceSet>> action)
BinaryTasksCollection getTasks()
void tasks(Action<? super BinaryTasksCollection> action)