Gradle and Jboss jbpm

Has anybody already played with gradle and jbpm? I have a project with a structure like this:

project -src -test -jpdl

the src folder contains all the source code, the test folder contains the test files and in the jpdl folder there are the processes. each process is one folder. example:

project -jpdl



a want to be able that gradle builds for each processfolder a zip file containing the compiled classes from src and the specific content from the process folder. The processfolder contains two xml files, and one jpg image.

the generated name of the zipfile should include the versionnumber.

Last but not least it have to uploaded to nexus and tagged in subversion.

perhaps someone of you had this problem in the past or something similar.