robohorse/RoboPOJOGenerator


IntelliJ IDEA and Android Studio plugin

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.robohorse:RoboPOJOGenerator:2.3.2'
	}
	dependencies {
		implementation("com.github.robohorse:RoboPOJOGenerator:2.3.2")
	}
	<dependency>
	    <groupId>com.github.robohorse</groupId>
	    <artifactId>RoboPOJOGenerator</artifactId>
	    <version>2.3.2</version>
	</dependency>

                            
    libraryDependencies += "com.github.robohorse" % "RoboPOJOGenerator" % "2.3.2"
        
        

                            
    :dependencies [[com.github.robohorse/RoboPOJOGenerator "2.3.2"]]
        
        

Readme


RoboPOJOGenerator

Android Arsenal

<!-- Plugin description --> <p><b>IntelliJ IDEA</b> and <b>Android Studio</b> plugin.</p> <p>Generates Kotlin and Java data transfer objects from JSON payload. Just insert your JSON payload and select target serialisation framework.</p> <p><b>Keywords</b>: JsonToPojo, Json2Pojo, Kotlin, GSON, FastJSON, AutoValue, Jackson, LoganSquare, Moshi, Parcelable, Lombok, Jakarta JSON Binding, Java records, KotlinX.</p> <!-- Plugin description end -->

How to install

<p>Just get it and install from the official <a href="https://plugins.jetbrains.com/plugin/8634">plugin repository</a> or simply find it in <b>Preferences</b> -> <b>Plugins</b> -> <b>Marketplace</b> -> <b>RoboPOJOGenerator</b></p> <p><img src="images/install_v204.png" alt="installation image"></p>

How to use

<p>1. Select a target package -> <b>New</b> -> <b>Generate POJO from JSON</b> </p> <p><img src="images/plugin_start_v202.png" alt="how to start image"></p> <p>2. Put JSON payload into the window and select target serialisation framework.</p> <p><img src="images/plugin_window_v202.png" alt="example image"></p> <p>3. See generated files inside the selected package!</p>

Changelog

You can find it here.

About

<p>Copyright 2016 Vadim Shchenev, and licensed under the MIT licence.</p> <p> No attribution is necessary, but it's very much appreciated.</p> <p>Put a star on this project if you like it.</p>