Debug School

rakesh kumar
rakesh kumar

Posted on

Command-Line Interface

What is role of Command-Line Interface in gradle
What is Project reporting ?
How to list of the sub-projects of the selected project
list of the main tasks of the selected project or description for each task
How to get more information in the task listing using the --all option
** How to list of the dependencies of the selected project.**

What is role of Command-Line Interface in gradle
The command-line interface is one of the primary methods of interacting with Gradle. The following serves as a reference of executing and customizing Gradle use of a command-line or when writing scripts or configuring continuous integration.

gradle [taskName...] [--option-name...]
Enter fullscreen mode Exit fullscreen mode

Project reporting
Gradle provides several built-in tasks which show particular details of your build. This can be useful for understanding the structure and dependencies of your build, and for debugging problems.
How to list of the sub-projects of the selected project

$ gradle projects
Enter fullscreen mode Exit fullscreen mode

list of the main tasks of the selected project or description for each task

$ gradle tasks
Enter fullscreen mode Exit fullscreen mode

How to get more information in the task listing using the --all option

$ gradle tasks --all

** How to list of the dependencies of the selected project.**
Running gradle dependencies gives you a list of the dependencies of the selected project, broken down by configuration. For each configuration, the direct and transitive dependencies of that configuration are shown in a tree. Below is an example of this report:

$ gradle dependencies
Enter fullscreen mode Exit fullscreen mode

Top comments (0)