Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the description of an existing Gradle task?

Tags:

gradle

How can I change the description of an existing Gradle task? I have tried

tasks.idea.doFirst {
    description = "asda"
}

and

tasks.idea.doLast {
    description = "asda"
}

but neither change the decription listed when I run gradle tasks.

like image 736
Mike Rylander Avatar asked Jan 29 '26 02:01

Mike Rylander


1 Answers

You have to set the description in the configuration phase:

tasks.idea {
    description = "asda"
}
like image 154
Peter Niederwieser Avatar answered Jan 30 '26 18:01

Peter Niederwieser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!