Package org.gradle.buildinit.specs
Schnittstelle BuildInitSpec
- Alle Superschnittstellen:
Describable
Represents a specification for a new type of project that the
init task can generate.- Seit:
- 8.12
- Implementation Requirements:
- Meant to be implemented by plugins that want to provide additional project types, with implementations
being discoverable by a
ServiceLoader.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault StringThe name of the type of project this spec will generate.default List<BuildInitParameter<?>> Returns the parameters that can be provided to configure this project during generation.getType()An identifier for the type of project this spec will generate.
-
Methodendetails
-
getDisplayName
The name of the type of project this spec will generate.This will be used to allow the user to select a project type when running the
inittask. By default, this is the proper-cased version ofgetType().- Angegeben von:
getDisplayNamein SchnittstelleDescribable- Gibt zurück:
- a name providing a brief description of this type of project
- Seit:
- 8.12
-
getType
String getType()An identifier for the type of project this spec will generate.This will be used to allow the user to select a project type when running the
inittask non-interactively by supplying the--typeparameter to the init task.Each project type can be registered to only a single
BuildInitGenerator.- Gibt zurück:
- type id for this type of project
- Seit:
- 8.12
- Implementation Requirements:
- Must be unique amongst all project types contributed by a plugin.
-
getParameters
Returns the parameters that can be provided to configure this project during generation.- Gibt zurück:
- the parameters for this type of project specification
- Seit:
- 8.12
-