Search Gradle plugins

io.github.mmalygin.openapi-generator

This plugin allows you to generate client and server SDKs for different languages, documentation and new generators from OpenAPI 2.0 and 3.x specifications. It does mostly the same things as openapi generator plugin but has a set of additional parameters: 1. Java client retrofit2 generator: add "interfaceOnly" additional property. If it's true, only API interfaces are generated. 2. Java client retrofit2 generator: allow to select serialization library when interfaceOnly = true. It's possible to use jackson instead of gson. 3. Possibility to configure useOneOfInterfaces via additional properties. Generation oneOf interfaces for Java Spring generator.

https://github.com/mmalygin/openapi-generator

Version 5.3.0 (latest)

Created 07 April 2022.


This plugin allows you to generate client and server SDKs for different languages, documentation and new generators from OpenAPI 2.0 and 3.x specifications.
It does mostly the same things as openapi generator plugin but has a set of additional parameters:
1. Java client retrofit2 generator: add "interfaceOnly" additional property. If it's true, only API interfaces are generated.
2. Java client retrofit2 generator: allow to select serialization library when interfaceOnly = true. It's possible to use jackson instead of gson.
3. Possibility to configure useOneOfInterfaces via additional properties. Generation oneOf interfaces for Java Spring generator.

Using the plugins DSL:

plugins {
  id "io.github.mmalygin.openapi-generator" version "5.3.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.mmalygin:openapi-generator-gradle-plugin:5.3.0"
  }
}

apply plugin: "io.github.mmalygin.openapi-generator"

Using the plugins DSL:

plugins {
  id("io.github.mmalygin.openapi-generator") version "5.3.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.github.mmalygin:openapi-generator-gradle-plugin:5.3.0")
  }
}

apply(plugin = "io.github.mmalygin.openapi-generator")

Learn how to apply plugins to subprojects