Reputation: 14968
While creating some tasks in the build.gradle
of a project I found very difficult to know which type the task should be.
Is there any reference guide indicating what kind of tasks exist and when to use every one of them?
P.S.: On the link referenced above I did not find this info.
Upvotes: 4
Views: 424
Reputation: 14968
In the Gradle official documentation website, the tasks are located at the left panel under a "Core type" heading like this:
In addition to this, every new plugin (third party) you add to your project can add new tasks (which are available on your build.gradle
) that are not listed in the above list, and should be documented in the website of the plugin.
About when the use every one of them, it depends on what you need to do. Every task on the list has a link with the corresponding documentation. i.e., in the image above if you click on the Setting task it leads you to its documentation. This way you can determine whether the task is useful to what you need to do or not.
Upvotes: 1