Build Setup Plugin
The Gradle Build Setup plugin can be used to bootstrap the process of creating a new Gradle build. It supports creating brand new projects of different types as well as converting existing builds (e.g. An Apache Maven build) to be Gradle builds.
Gradle plugins typically need to be applied to a project before they can be used (see Section 21.1, “Applying plugins”). The Build Setup plugin is an automatically applied plugin, which means you do not need to apply it explicitly. To use the plugin, simply execute the task named setupBuildwhere you would like to create the Gradle build. There is no need to create a “stub” build.gradle file in order to apply the plugin.
It also leverages the wrapper task from the Wrapper plugin (see Chapter 48, Wrapper Plugin), which means that the Gradle Wrapper will also be installed into the project.