Search Gradle plugins

org.jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, and more.

http://www.jsonschema2pojo.org/

Sources: https://github.com/joelittlejohn/jsonschema2pojo

Version 1.2.1 (latest)

Created 19 February 2023.

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, and more.

Using the plugins DSL:

plugins {
  id("org.jsonschema2pojo") version "1.2.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.jsonschema2pojo:jsonschema2pojo-gradle-plugin:1.2.1")
  }
}

apply(plugin = "org.jsonschema2pojo")

Using the plugins DSL:

plugins {
  id "org.jsonschema2pojo" version "1.2.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.jsonschema2pojo:jsonschema2pojo-gradle-plugin:1.2.1"
  }
}

apply plugin: "org.jsonschema2pojo"

Learn how to apply plugins to subprojects