Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 958 Bytes

README.markdown

File metadata and controls

35 lines (25 loc) · 958 Bytes
Gradle plugins
apply from: 'https://raw.github.com/rartavia/gradle-plugins/master/xmlbeansPlugin/xmlbeans.gradle'

...

configurations {
    xmlbeans
}

dependencies {
    xmlbeans 'org.apache.xmlbeans:xmlbeans:2.5.0'
}

sourceSets {
    schemas {
            srcDir = 'src/main/schemas'
    }
}

Instructions:

  1. Place your schemas somewhere in your project as shown above
  2. Declare the required XMLBeans dependency
  3. Invoke the "compileXmlSchemas" task

Notes: Compiled classes are inside of "build/classes/xmlbeans"

See gradle-plugins/xmlbeansPlugin/sample.