I want to post process the jar file output by a jar task. I have already written a task that can do that (it moves out the output of the jar task to another file and creates a new jar in its place). However other plugins depend upon the jar task, not the new task that I defined.
Thus I would like to in effect override the jar task to post process the jar output by the jar task “in addition” to what the jar task already does. How can I do that?
As an associated question, is/are there guideline(s) that helps me decide whether I should just create a new task or should create a new plugin ? As in this case.