Skip to content

Commit ab9facd

Browse files
authored
[gradle] Document consuming via gradle plugin portal (#3125)
1 parent 2a5a272 commit ab9facd

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

modules/openapi-generator-gradle-plugin/README.adoc

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,23 @@ compileJava.dependsOn tasks.openApiGenerate
4040

4141
== Plugin Setup
4242

43+
[source,group]
44+
----
45+
plugins {
46+
id "org.openapi.generator" version "4.0.1"
47+
}
48+
----
49+
50+
Using https://docs.gradle.org/current/userguide/plugins.html#sec:old_plugin_application[legacy plugin application]:
51+
4352
[source,groovy]
4453
----
4554
buildscript {
4655
repositories {
4756
mavenLocal()
4857
mavenCentral()
58+
// or, via Gradle Plugin Portal:
59+
// url "https://plugins.gradle.org/m2/"
4960
}
5061
dependencies {
5162
classpath "org.openapitools:openapi-generator-gradle-plugin:4.0.1"
@@ -55,11 +66,6 @@ buildscript {
5566
apply plugin: 'org.openapi.generator'
5667
----
5768

58-
[NOTE]
59-
====
60-
The gradle plugin is not currently published to https://plugins.gradle.org/m2/.
61-
====
62-
6369
== Configuration
6470

6571
=== openApiGenerate

0 commit comments

Comments
 (0)