Question

A custom gradle plugin when listed using gradle tasks is listed as Other tasks.

Example - gradle tasks

IDE tasks
---------
cleanIdea - Cleans IDEA project files (IML, IPR)
idea - Generates IDEA project files (IML, IPR, IWS)

Other tasks
-----------
csvDiffTask - my custom task

How can a different category be given, example My Tasks, so that when running gradle tasks it appears as below

IDE tasks
---------
cleanIdea - Cleans IDEA project files (IML, IPR)
idea - Generates IDEA project files (IML, IPR, IWS)

My tasks
-----------
csvDiffTask - my custom task

PS: Checked the source of some plugins on github and checked stackoverflow and no avail.

Was it helpful?

Solution

You can do this by setting the "group" property of your 'csvDiffTask'. Have a look at the Gradle DSL reference for details: http://www.gradle.org/docs/current/dsl/org.gradle.api.Task.html#org.gradle.api.Task:group for details

cheers, René

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top