Search Gradle plugins

com.github.bjornvester.xjc

Adds XJC tool to your project for generating Java source code for XML schemas (xsd files). Works with the Gradle build cache and has been tested with Java 8 and 11. Please see the Github project page for details.

https://github.com/bjornvester/xjc-gradle-plugin

Sources: https://github.com/bjornvester/xjc-gradle-plugin

Version 1.2

Created 15 August 2019.

Changes:
- Support for generating episode files
- Support for consuming episode and binding files
- Work-around for the annoying SAXNotRecognizedExceptions in the output from XJC
- The xsdFiles property now needs to be assigned (previously needed to be configured with the 'from' method)
- The plugin now requires Gradle 5.6 or later (previously 5.4)

Using the plugins DSL:

plugins {
  id("com.github.bjornvester.xjc") version "1.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.github.bjornvester:xjc-gradle-plugin:1.2")
  }
}

apply(plugin = "com.github.bjornvester.xjc")

Using the plugins DSL:

plugins {
  id "com.github.bjornvester.xjc" version "1.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.github.bjornvester:xjc-gradle-plugin:1.2"
  }
}

apply plugin: "com.github.bjornvester.xjc"

Learn how to apply plugins to subprojects