This User Guide for the version 1.6 incubating build-setup plugin page says the task name for bootstrapping a new project is “buildSetup”:
http://www.gradle.org/docs/current/userguide/build_setup_plugin.html
But the task name that actually works is “setupBuild”:
$ gradle buildSetup
FAILURE: Could not determine which tasks to execute.
* What went wrong:
Task 'buildSetup' not found in root project 'tg'.
* Try:
Run gradle tasks to get a list of available tasks.
BUILD FAILED
Total time: 0.781 secs
$ gradle setupBuild
:generateBuildFile
:generateSettingsFile
:setupWrapper
:setupBuild
BUILD SUCCESSFUL
Total time: 1.302 secs