Gradle task description


(Charleston Thai) #1

Hi, in my gradle script, I have 2 tasks as followed. But when I run ‘gradle tasks’, it is showing up as. How do I get task TaskB to display the description as well? thanks.

Other tasks ----------- TestA - this is A TestB

task TestA {

description = “this is A” }

task TestB << {

descriptino = “this is B” }


(Charleston Thai) #2

sorry for the typo in TestB. It should be “description” but it is still not showing the property description when running ‘gradle tasks’


(Luke Daley) #3
task TestA {
   description = "this is A"
 }
  task TestB
{
   description = "this is B"
 }

The problem was the ‘>>’. That attaches the closure as an action, which executes as the task runs. This will never execute in this case.