Gradle 1.10 Feature Spotlight: Rendering task details

Being the new developer on a big enterprise build can be daunting. A good start is to have a look at the tasks exposed by each project of the build. Gradle lets you explore available tasks and their functionality with the default task named tasks. The output generated by this task lists all available task names, a description if specified and their dependencies on other tasks.

Sometimes that is not enough information. You want to know about the options and properties exposed by the task. So far Gradle didn’t provide a good way to determine the type of a task except for digging through the documentation.

With version 1.10 this has become much easier. The standard help task has been extended by the option –task that allows for rendering detailed information about the specified task. Let’s take a look at the example below. The following command line output demonstrates the use of the new option for the dependencyInsight task:


As you can see it is very easy to determine the implementing task type

and its options –configuration and –dependency.

You can learn more from the Gradle 1.10 release notes here.