Java2wsdl conversion

I have a java project to which I build it using gradle build and generate a war file.

Currently my requirement is to generate wsdl file at the time of build from java classes. I came to know about axis2-java2wsdl-maven-plugin and found the syntax of applying it in gradle. But I am not able to get the tasks list or the example of using this plugin in gradle to generate the WSDL file using this plugin.

Can anybody let me know of how to use this plugin or any other help so that I can generate WSDL file form my java classes.

Probably easiest to invoke the ant task using Gradle’s ant integration