Examples
This section provides Gradle examples translated from the Maven plugin examples.
CAUTION
You will need to ensure you have the appropriate dependencies when generating code. Additionally, there may be more dependencies the CXF Codegen tool requires. Review the adding dependencies documentation on how to add additional dependencies to the CXF Codegen tool classpath.
In addition to the tool dependencies, your application may require additional dependencies as well.
CAUTION
All examples are written for and tested for Gradle 9.6.1. Depending on your Gradle version, you may need to adapt the example to a syntax that is compatible with your Gradle version.
INFO
The following examples have been omitted:
- Using wsdlRoot with includes/excludes patterns
- It is a design decision of the plugin to omit the functionality to define a
wsdlRootor "base path" to locate WSDL(s). - It is responsibility of the user to provide the location a WSDL. This keeps the plugin codebase simpler.
- It is a design decision of the plugin to omit the functionality to define a
- Using defaultOption to avoid repetition
- The
defaultOptionsconfiguration does not exist in this Gradle plugin. Instead, use native Gradle APIs to accomplish the same behavior.
- The