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.