Create a ZIP with all build artifacts of a multi-module Android build

Hi there,

I have a multi-module Android gradle build, i.e. a root project and several sub projects that are being built.
Evth. is fine so far, but now I would like to create a ZIP archive containing all the produced build artifacts.
The ZIP archive should be created before uploadArchives is called, since I want the ZIP archive to be a part of the uploaded artifacts.
I found the distribution plugin and the distZip task, but I cannot get it working - probably because I am running a multi-module build.

Is there a good way to do what I am trying to achieve?