A couple of relevant threads/jiras on the subject:
- Roadmap: improving_console_output * the ‘> Loading’ and ‘> Building’ status indicators : possible to stop displaying those? * GRADLE-1147 * GRADLE-1168
For this specific case I would like to be able to query the user executing the gradle build for a license acceptance using a command line console prompt, but the question is more generic:
- How should we go about programmatically outputting text to the build console without polluting the output with the gradle status logging (status logging as in “Building>”, “Resolving dependencies>”. Programmatically meaning sending in -q on the command line is not enough) * How should we go about retrieving user input from the build console when the build is run by the gradle daemon. With the recent (and brilliant, many thanks and cudos to the dev team) changes and improvements to the gradle daemon, almost all our builds are now run in daemon mode which elevates the priority of this issue.