User guide docs are wrong with respect to how to create a new project with build-setup plugin


(Mark Petrovic) #1

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

(Luke Daley) #2

This has been fixed in 1.7.