Need help on java2wsdl using gradle

617 views Asked by At

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.


Dependency section which I included in build.gradle:

repositories    {
    mavenCentral()
}
dependencies {
    'org.apache.axis2:axis2-java2wsdl-maven-plugin:1.6.2'
}
1

There are 1 answers

0
ToYonos On

axis2-java2wsdl-maven-plugin is a maven plugin not a gradle one.

Moreoever, gradle plugins must be defined in a buildscript closure or a plugins one if you want to use the new plugins DSL.

Here, you are just using the maven plugin as a regular dependency for your project.

As far as i know, there is not "java2wsdl" gradle plugin.