Search Gradle plugins

org.openapi.generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

https://openapi-generator.tech/

Sources: https://github.com/OpenAPITools/openapi-generator

Version 5.0.1

Created 06 February 2021.

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

Add this plugin to your build using the plugins DSL:

plugins {
  id("org.openapi.generator") version "5.0.1"
}

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("org.openapi.generator:org.openapi.generator.gradle.plugin:5.0.1")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("org.openapi.generator")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("org.openapi.generator:org.openapi.generator.gradle.plugin:5.0.1")
      }
    }
    
    apply(plugin = "org.openapi.generator")
  • Applying plugins to all subprojects .