jsonschema2pojo-gradle-plugin

Generate DTO style Java classes from JSON Schema documents

License

License

Categories

Categories

Gradle Build Tools JSON Data
GroupId

GroupId

com.github.blindpirate
ArtifactId

ArtifactId

jsonschema2pojo-gradle-plugin
Last Version

Last Version

1.1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

jsonschema2pojo-gradle-plugin
Generate DTO style Java classes from JSON Schema documents
Project URL

Project URL

https://github.com/joelittlejohn/jsonschema2pojo

Download jsonschema2pojo-gradle-plugin

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
com.github.blindpirate : jsonschema2pojo-core jar 1.1.0.4
com.google.code.findbugs : annotations jar 1.3.9

provided (1)

Group / Artifact Type Version
dev.gradleplugins : gradle-api jar 5.6

test (2)

Group / Artifact Type Version
junit : junit jar 4.13.2
org.slf4j : slf4j-simple jar 1.7.24

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 2.x or Gson.

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.1.1</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.1.0.4
1.1.0.3
1.1.0.2