What is the best way to build a ejb 2.1 spec within gradle?

I currently use an all ant build which executes the wsejbdeploy task. Before resorting to importing an ant build.xml file with the task I am currently using I was hoping to see if there was a cleaner way to do this.

You don’t have to import the Ant build, but you’ll have to use the ‘wsejbdeploy’ Ant task (from Gradle).