For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

generate

abstract fun generate(config: BuildInitConfig, projectDir: Directory)(source)

Generates a project from the given configuration in the given directory.

Since

8.12

Parameters

config

the configuration for the project to generate

projectDir

the directory that will contain the new project