unbroken-dome / gradle-xjc-plugin

A Gradle plugin to run the XJC binding compiler during a build
MIT License
55 stars 18 forks source link
code-generation gradle-plugin jaxb jaxb-xjc xjc xml-schema

ifdef::env-github[] :tip-caption: :bulb: :note-caption: :information_source: :important-caption: :heavy_exclamation_mark: :caution-caption: :fire: :warning-caption: :warning: endif::[]

= Gradle XJC Plugin

Invokes the xjc binding compiler from a Gradle build.

== Features

== Requirements

== Quick Start

Apply the org.unbroken-dome.xjc plugin to your Gradle build script and add an appropriate dependency on the JAXB API:

[source,kotlin] .build.gradle(.kts)

plugins { id("org.unbroken-dome.xjc") version "2.0.0" }

dependencies { implementation("javax.xml.bind:jaxb-api:2.3.0") }

Put your schemas (.xsd), binding customization files (.xjb) and catalogs (.cat) into src/main/schema.

That's it! The plugin will automatically invoke XJC to generate code from your schemas and include it the main Java compilation.

== Further Documentation