Skip to content

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:

  1. Using wsdlRoot with includes/excludes patterns
    • It is a design decision of the plugin to omit the functionality to define a wsdlRoot or "base path" to locate WSDL(s).
    • It is responsibility of the user to provide the location a WSDL. This keeps the plugin codebase simpler.
  2. Using defaultOption to avoid repetition
    • The defaultOptions configuration does not exist in this Gradle plugin. Instead, use native Gradle APIs to accomplish the same behavior.

Released under Apache 2.0 license