How to disable unwantedTask in the build.gradle file

Task: Disable unwanted task in the build.gradle file

Language: Java, Gradle

Implementation:

Use next in the build.gradle file:

unwantedTask.enabled = false
or
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.

Done.

Leave a Reply

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




Enter Captcha Here :