I need to extend one of the tasks in the Android-plugin. But stick to some troubles. I have already understood that overwrite is not working. Don’t understand why it is still in documentation.
I have found a solution to change task logic it looks like this:
<task_name> {
actions = []
doLast {
println 'I have changed task execution'
}
}
But for which task type this construction works ? For example in java-plugin it works for build tasks, like: “jar”, “assemble” But it is a problem to overwrite task “help” for example. It imidiately will show an error:
Could not find method help() for arguments [build_7ujgmls5lue56vvhkoimm8i4i$_run_closure2@1817fe89] on root project 'experiment'.