Gradle Plugins

Maintained by aalmiray

Summary

jsonschema2pojo generates a Java representation of your json schema. The schema reference describes the rules and their effect on generated Java types..

Website https://github.com/joelittlejohn/jsonschema2pojo
Author joelittlejohn
Version 0.4.0

Usage


buildscript {
    repositories { jcenter() }
    dependencies {
        classpath 'org.jsonschema2pojo:jsonschema2pojo-gradle-plugin:0.4.0'
        classpath 'joda-time:joda-time:2.2'
    }
}

apply plugin: 'jsonschema2pojo'

repositories {
    jcenter()
}

dependencies {
    compile 'commons-lang:commons-lang:2.6'
    compile 'javax.validation:validation-api:1.1.0.CR2'
    compile 'com.fasterxml.jackson.core:jackson-databind:2.1.4'
    compile 'joda-time:joda-time:2.2'
}

jsonSchema2Pojo {
    targetPackage = 'com.acme'
    includeJsr303Annotations = true
    propertyWordDelimiters = ['_'] as char[]
}