bjornvester / wsdl2java-gradle-plugin

A Gradle plugin for generating Java classes from WSDL files
MIT License
40 stars 14 forks source link

Specifying package name #2

Open astetsa opened 4 years ago

astetsa commented 4 years ago

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

lkoe commented 3 years ago

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")
}