How to disable unwantedTask in the build.gradle file

Task: Disable unwanted task in the build.gradle file

Language: Java, Gradle


Use next in the build.gradle file:

unwantedTask.enabled = false
tasks.unwantedTask.enabled = false

As a result you will skip running this task.

Note: use '-x unwantedTask' in the command line command to skip it.


Leave a Reply

Your email address will not be published. Required fields are marked *

Enter Captcha Here :