wsdl2java-gradle-plugin
wsdl2java-gradle-plugin copied to clipboard
Version 1.2 prohibits configuring package per namespace
It's no longer possible to specify the package name to be used per namespace.
Like specified in wsdl2java documentation, it's possible to change the package name per XML namespace: -p <[wsdl-namespace =]package-name>*.
Version 1.2 makes it impossible to specify this:
options.addAll('-p', 'http://www..../service=com.example.service')
options.addAll('-p', 'http://www..../local=com.example.local')
options.addAll('-p', 'http://www..../common=com.example.common')
The ideal solution would be to have #29 merged and released, but in the meantime, if someone gets here looking for a solution, I ended up injecting the parameters via the includesWithOptions.
Something like this worked for my use case:
includesWithOptions = [
"**/*.wsdl": [
'-p', 'http://www..../service=com.example.service',
'-p', 'http://www..../local=com.example.local',
'-p', 'http://www..../common=com.example.common',
]
]