Adding descriptions for custom tasks in Gradle

已回答

In the Run/Debug configurations window, when adding a Gradle configuration, clicking the box at the right of the ‘Run’ text field brings up the Tasks and Arguments window, which shows the available tasks and a short description. My custom tasks do not have descriptions. Is there a way to write the build.gradle file so that the IDE will pick up a custom description for each custom task?

0

Sorry - I've worked it out. Just need to add “description = ‘XXXX’” to the task (which I did) and then Sync Gradle Changes (which I didn't do)

Thanks.

0

请先登录再写评论。