wsdl2java-gradle-plugin icon indicating copy to clipboard operation
wsdl2java-gradle-plugin copied to clipboard

Specifying package name

Open astetsa opened this issue 5 years ago • 1 comments

My scheme contains name space as following http://www.foo.com/Public/Services

As a result java classes were generated in package com.foo.public.services But public is java keyword. As a result I cannot build my project. How can I specify package name?

I use version of the plugin 0.4

astetsa avatar Jan 29 '20 11:01 astetsa

As of version 1.0 you should be able to achieve this by providing the -p parameter (https://cxf.apache.org/docs/wsdl-to-java.html) via the options property:

wsdl2java {
  options.addAll("-p", "my.pck.name")
}

lkoe avatar May 19 '21 09:05 lkoe