org.jsonschema2pojo:jsonschema2pojo-scalagen

Generate DTO style Java classes from JSON Schema documents

License

License

Categories

Categories

Scala Languages JSON Data
GroupId

GroupId

org.jsonschema2pojo
ArtifactId

ArtifactId

jsonschema2pojo-scalagen
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Generate DTO style Java classes from JSON Schema documents

Download jsonschema2pojo-scalagen

How to add to project

<!-- https://jarcasting.com/artifacts/org.jsonschema2pojo/jsonschema2pojo-scalagen/ -->
<dependency>
    <groupId>org.jsonschema2pojo</groupId>
    <artifactId>jsonschema2pojo-scalagen</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.jsonschema2pojo/jsonschema2pojo-scalagen/
implementation 'org.jsonschema2pojo:jsonschema2pojo-scalagen:1.0.2'
// https://jarcasting.com/artifacts/org.jsonschema2pojo/jsonschema2pojo-scalagen/
implementation ("org.jsonschema2pojo:jsonschema2pojo-scalagen:1.0.2")
'org.jsonschema2pojo:jsonschema2pojo-scalagen:jar:1.0.2'
<dependency org="org.jsonschema2pojo" name="jsonschema2pojo-scalagen" rev="1.0.2">
  <artifact name="jsonschema2pojo-scalagen" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jsonschema2pojo', module='jsonschema2pojo-scalagen', version='1.0.2')
)
libraryDependencies += "org.jsonschema2pojo" % "jsonschema2pojo-scalagen" % "1.0.2"
[org.jsonschema2pojo/jsonschema2pojo-scalagen "1.0.2"]

Dependencies

compile (5)

Group / Artifact Type Version
com.google.code.javaparser : javaparser jar 1.0.10
net.sourceforge.collections : collections-generic jar 4.01
org.apache.commons : commons-lang3 jar 3.2.1
commons-io : commons-io jar 2.4
com.google.code.findbugs : annotations jar 1.3.9

provided (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12

test (4)

Group / Artifact Type Version
org.scala-lang : scala-compiler jar 2.11.12
junit : junit jar 4.11
com.mysema.querydsl : querydsl-core jar 2.3.0
com.jsuereth : scala-arm_2.11 jar 1.4

Project Modules

There are no modules declared in this project.

jsonschema2pojo Build Status Maven Central

jsonschema2pojo generates Java types from JSON Schema (or example JSON) and can annotate those types for data-binding with Jackson 1.x, Jackson 2.x or Gson.

Note: there are breaking changes between 0.5.1 and 1.0.0. Check the change log. Anything marked in bold in the 1.0.0 alpha, beta and final release is a breaking change.

Try jsonschema2pojo online
or brew install jsonschema2pojo

You can use jsonschema2pojo as a Maven plugin, an Ant task, a command line utility, a Gradle plugin or embedded within your own Java app. The Getting Started guide will show you how.

A very simple Maven example:

<plugin>
    <groupId>org.jsonschema2pojo</groupId>
    <artifactId>jsonschema2pojo-maven-plugin</artifactId>
    <version>1.0.2</version>
    <configuration>
        <sourceDirectory>${basedir}/src/main/resources/schema</sourceDirectory>
        <targetPackage>com.example.types</targetPackage>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>generate</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Useful pages:

Project resources:

Licensed under the Apache License, Version 2.0.

YourKit

Special thanks to YourKit, who support this project through a free license for their full-featured YourKit Java Profiler.

Versions

Version
1.0.2
1.0.1
1.0.0
1.0.0-beta1
1.0.0-alpha4
1.0.0-alpha3
1.0.0-alpha2
1.0.0-alpha1
0.5.1
0.5.0