Package: org.gradle.buildinit.tasks

## [Groovy] Class InitBuild

- org.gradle.buildinit.tasks.InitBuild

- Generates a Gradle project structure.

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `ProjectLayoutSetupRegistry` | `projectLayoutRegistry`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `List<String>` | `getAvailableBuildTypes()`
    `ProjectLayoutSetupRegistry` | `getProjectLayoutRegistry()`
    `String` | `getType()` The desired type of build to create, defaults to {@value BuildInitTypeIds#POM} if 'pom.xml' is found in project root if no pom.xml is found, it defaults to {@value BuildInitTypeIds#BASIC}.
    `void` | `setType(String type)`
    `void` | `setupProjectLayout()`

- - ### Property Detail

    - #### ProjectLayoutSetupRegistry projectLayoutRegistry

  - ### Method Detail

    - #### @OptionValues("type") List<String> getAvailableBuildTypes()

    - #### ProjectLayoutSetupRegistry getProjectLayoutRegistry()

    - #### String getType()

      The desired type of build to create, defaults to {

      value:
        BuildInitTypeIds#POM} if 'pom.xml' is found in project root if no pom.xml is found, it defaults to {@value BuildInitTypeIds#BASIC}. This property can be set via command-line option '--type'.

    - #### @Option(option = "type", description = "Set type of build to create.") void setType(String type)

    - #### @TaskAction void setupProjectLayout()