Interface BuildInitGenerator


@Incubating public interface BuildInitGenerator
Generates a new project from a configured BuildInitConfig.
Since:
8.12
Implementation Requirements:
Implementations should be public, abstract and provide an (implicit or explicit) 0-argument constructor, as Gradle will instantiate them and inject any specified services. Generators are NOT expected to generate Gradle wrapper files.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    generate(BuildInitConfig config, Directory projectDir)
    Generates a project from the given configuration in the given directory.
  • Method Details

    • generate

      void generate(BuildInitConfig config, Directory projectDir)
      Generates a project from the given configuration in the given directory.
      Parameters:
      config - the configuration for the project to generate
      projectDir - the directory that will contain the new project
      Since:
      8.12