Skip to content

Instantly share code, notes, and snippets.

@hendisantika
Created May 23, 2019 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hendisantika/14258a321a5e7aac6354f46d84673138 to your computer and use it in GitHub Desktop.
Save hendisantika/14258a321a5e7aac6354f46d84673138 to your computer and use it in GitHub Desktop.
Gradle Plugin
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'no.nils:wsdl2java:0.10'
}
}
apply plugin: 'java'
apply plugin: 'no.nils.wsdl2java'
wsdl2javaExt {
cxfVersion = "3.1.10"
}
wsdl2java{
generatedWsdlDir = file("${projectDir}/src/main/service") //java source classes will be generated
wsdlDir=file("${projectDir}/src/main/resources/wsdl/") //wsdl directory
wsdlsToGenerate = [
[file("${projectDir}/src/main/resources/wsdl/wsdl1.wsdl")], //wsdl1
[file("${projectDir}/src/main/resources/wsdl/wsdl2.wsdl")], //wsdl2
[file("${projectDir}/src/main/resources/wsdl/wsdl3.wsdl")] //wsdl3
]
}
compileJava.dependsOn wsdl2java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment