Skip to content

Commit 8b26c23

Browse files
authored
Merge pull request #7 from dcp65/patch-1
Update README
2 parents 7ebf4c4 + 8bf2a47 commit 8b26c23

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

README.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
[![Build Status](https://travis-ci.org/springdoc/springdoc-openapi-gradle-plugin.svg?branch=master)](https://travis-ci.org/springdoc/springdoc-openapi-gradle-plugin)
22
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=springdoc_springdoc-openapi-gradle-plugin&metric=alert_status)](https://sonarcloud.io/dashboard?id=springdoc_springdoc-openapi-gradle-plugin)
33

4-
# **Introduction to springdoc-openapi-gradle-plugin**
4+
# Introducing springdoc-openapi-gradle-plugin
55

6-
Spring Docs Open API Gradle Plugin - Generates OpenAPI-3 specification docs for spring boot application
6+
Gradle plugin for springdoc-openapi.
77

8-
This Gradle plugin provides the capability to generate OpenAPI-3 specification docs for spring boot application from a Gradle build.
9-
The plugin does this with help of springdoc-openapi-core
8+
This plugin allows you to generate an OpenAPI 3 specification for a Spring Boot application from a Gradle build.
9+
The plugin does this with help of springdoc-openapi-core.
1010

1111
Compatibility Notes
1212
-------------------
1313

14-
The plugin is build on gradle version 6.1.
14+
The plugin is built on Gradle version 6.1.
1515

1616
Dependencies
1717
------------
18-
This plugin has a runtime dependency on the the following plugins
18+
This plugin has a runtime dependency on the the following plugins:
1919

20-
1. Spring boot gradle plugin - "org.springframework.boot"
21-
2. Gradle process plugin - "com.github.johnrengelman.processes"
20+
1. Spring Boot Gradle plugin - `org.springframework.boot`
21+
2. Gradle process plugin - `com.github.johnrengelman.processes`
2222

23-
Hence these plugins also needs to be added to your gradle builds.
23+
Hence these plugins also needs to be added to your Gradle builds.
2424

25-
Note: You will also need the springdocs-core jar file to be present in your spring boot application
25+
Note: You will also need the springdoc-core jar file to be present in your Spring Boot application.
2626

2727
How To Use
2828
----------
@@ -33,7 +33,7 @@ Gradle Groovy DSL
3333
plugins {
3434
id("org.springframework.boot") version "2.2.4.RELEASE"
3535
id "com.github.johnrengelman.processes" version "0.5.0"
36-
id("org.springdoc.openapi-gradle-plugin") version "1.0-SNAPSHOT"
36+
id("org.springdoc.openapi-gradle-plugin") version "1.0.0"
3737
}
3838
```
3939

@@ -42,24 +42,22 @@ Gradle Kotlin DSL
4242
plugins {
4343
id("org.springframework.boot") version "2.2.4.RELEASE"
4444
id("com.github.johnrengelman.processes") version "0.5.0"
45-
id("org.springdoc.openapi-gradle-plugin") version "1.0-SNAPSHOT"
45+
id("org.springdoc.openapi-gradle-plugin") version "1.0.0"
4646
}
4747
```
4848

49-
Note: For latest versions of the plugins please check the gradle plugin portal
49+
Note: For latest versions of the plugins please check the [Gradle Plugins portal](https://plugins.gradle.org/).
5050

5151
How the plugin works
5252
------------
5353

54-
When the user add this plugin and its runtime dependency plugins to your build file
55-
56-
The plugin creates the following tasks
54+
When you add this plugin and its runtime dependency plugins to your build file, the plugin creates the following tasks:
5755

5856
1. forkedSpringBootRun
5957

6058
2. generateOpenApiDocs
6159

62-
Running the task generateOpenApiDocs will generate the open api docs into a file openapi.json in your projects build dir
60+
Running the task `generateOpenApiDocs` writes the OpenAPI spec into a `openapi.json` file in your project's build dir.
6361

6462
```bash
6563
gradle clean generateOpenApiDocs
@@ -85,10 +83,10 @@ openApi {
8583

8684
Parameter | Description | Required | Default
8785
--------- | ----------- | -------- | -------
88-
`apiDocsUrl` | The url from where the open api docs can be downloaded | No | http://localhost:8080/v3/api-docs
89-
`outputDir` | The output directory where the generated open api file would be placed | No | $buildDir - Your projects build dir
86+
`apiDocsUrl` | The URL from where the OpenAPI doc can be downloaded | No | http://localhost:8080/v3/api-docs
87+
`outputDir` | The output directory for the generated OpenAPI file | No | $buildDir - Your project's build dir
9088
`outputFileName` | The name of the output file with extension | No | openapi.json
91-
`waitTimeInSeconds` | Time to wait in seconds for your spring boot application to start, before we make calls to `apiDocsUrl` to download the openapi docs | No | 30 seconds
89+
`waitTimeInSeconds` | Time to wait in seconds for your Spring Boot application to start, before we make calls to `apiDocsUrl` to download the OpenAPI doc | No | 30 seconds
9290

9391
# Building the plugin
9492

0 commit comments

Comments
 (0)