io.github.mmalygin.openapi-generator
Owner: Maxim Malygin
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.
Sources: https://github.com/mmalygin/openapi-generator
Version 6.2.0 (latest)
Created 02 October 2022.
Add this plugin to your build using the plugins DSL:
plugins {
id("io.github.mmalygin.openapi-generator") version "6.2.0"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts)
:dependencies { implementation("io.github.mmalygin.openapi-generator:io.github.mmalygin.openapi-generator.gradle.plugin:6.2.0") }
It can then be applied in the precompiled script plugin:plugins { id("io.github.mmalygin.openapi-generator") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("io.github.mmalygin.openapi-generator:io.github.mmalygin.openapi-generator.gradle.plugin:6.2.0") } } apply(plugin = "io.github.mmalygin.openapi-generator")
- Applying plugins to all subprojects .