Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #2505
Closed
Open
Issue created Mar 26, 2019 by Jim Schubert@jimschubertContributor

[gradle] Prior to 4.0 release, document gradle plugin portal

Description

To avoid confusion for the remainder of 4.0.0-SNAPSHOT, we won't add documentation about the upcoming publish to Gradle's Plugin Portal. Only release artifacts will be published here. Snapshot artifacts can still be consumed from Sonatype.

We'll want to update docs and the gradle plugin's README with details.

openapi-generator version

4.0.0-SNAPSHOT

Below is a rough draft of additional details:

The Gradle Plugin, org.openapi.generator, will be available from the Gradle Plugin Portal beginning with version 4.0.0.

This allows for simplified usage via the plugins DSL.

Groovy (build.gradle)

plugins {
  id "org.openapi.generator" version "4.0.0"
}

Kotlin (build.gradle.kts)

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

Legacy

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

apply(plugin = "org.openapi.generator")

Snapshots

buildscript {
  repositories {
        maven {
            url "https://oss.sonatype.org/content/repositories/releases/"
        }
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots/"
        }
  }
  dependencies {
    classpath("gradle.plugin.org.openapitools:openapi-generator-gradle-plugin:4.0.0-SNAPSHOT")
  }
}

apply(plugin = "org.openapi.generator")
Assignee
Assign to
Time tracking