>> I've been looking for it in the user guide and API, but haven't found it:
>> Is there a way to execute a gradle task from another gradle task (but
>> not through dependency), like antcall?
>
> What is your use case? Why does dependsOn does not work for you?
>
> Szczepan has pointed out that you can use the execute method. It is not part
> of the public API yet, but we might have to change this.
He was right - extracting the code to a method is the way to go. I was
just in an ant-y state of mind. :)
Paweł