Customize default behavior of Application plugin

Given that the project name is myproject, then running gradle distZip will produce a ZIP file called myproject-1.2.zip, with the following contents:

myproject-1.2/
              lib/
                  myproject-1.2.jar
                  ... other jars ...

But I want to place my jar and all runtime dependencies not in “lib” but in “lib/myfolder” i.e.

myproject-1.2/
             lib/
                 myfolder/
                          myproject-1.2.jar
                          ... other jars ...

Is it possible?

At the moment you can’t change this behavior. We wrote up an initial spec on this but haven’t agreed on whether that’s a good way forward.