Is there a command-line way to get information about a gradle task?
gradlew -dry-run <task>
will show what will be executed for the command. A shortcut version is:
gradlew -m <task>
Also
gradlew tasks
will show a list of all tasks and their dependencies.
There is
gradle help --task <taskname>
for exactly this now.