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” }
sorry for the typo in TestB. It should be “description” but it is still not showing the property description when running ‘gradle tasks’
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.