You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
groupedApiMappings.set(["https://localhost:8080/v3/api-docs/groupA" to "swagger-groupA.json",
76
75
"https://localhost:8080/v3/api-docs/groupB" to "swagger-groupB.json"])
76
+
customBootRun {
77
+
args = ["--spring.profiles.active=special"]
78
+
}
77
79
}
78
80
```
79
81
80
-
Parameter | Description | Required | Default
81
-
--------- | ----------- | -------- | -------
82
-
`apiDocsUrl` | The URL from where the OpenAPI doc can be downloaded | No | http://localhost:8080/v3/api-docs
83
-
`outputDir` | The output directory for the generated OpenAPI file | No | $buildDir - Your project's build dir
84
-
`outputFileName` | The name of the output file with extension | No | openapi.json
85
-
`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
86
-
`forkProperties` | Any system property that you would normal need to start your spring boot application. Can either be a static string or a java Properties object | No | ""
87
-
`groupedApiMappings` | A map of URLs (from where the OpenAPI docs can be downloaded) to output file names | No | []
88
-
89
-
### Fork properties examples
90
-
Fork properties allows you to send in anything that might be necessary to allow for the forked spring boot application that gets started
91
-
to be able to start (profiles, other custom properties, etc etc)
|`apiDocsUrl`| The URL from where the OpenAPI doc can be downloaded | No |http://localhost:8080/v3/api-docs|
85
+
|`outputDir`| The output directory for the generated OpenAPI file | No | $buildDir - Your project's build dir |
86
+
|`outputFileName`| The name of the output file with extension | No | openapi.json |
87
+
|`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 |
88
+
|`groupedApiMappings`| A map of URLs (from where the OpenAPI docs can be downloaded) to output file names | No |[]|
89
+
|`customBootRun`| Any bootRun property that you would normal need to start your spring boot application. | No | (N/A) |
90
+
91
+
### `customBootRun` properties examples
92
+
`customBootRun` allows you to send in the properties that might be necessary to allow for the forked spring boot application that gets started
93
+
to be able to start (profiles, other custom properties, etc.)
94
+
`customBootRun` allows you can specify bootRun style parameter, such as `args`, `jvmArgs`, `systemProperties` and `workingDir`.
95
+
If you don't specify `customBootRun` parameter, this plugin uses the parameter specified to `bootRun` in Spring Boot Gradle Plugin.
96
+
97
+
#### Passing static args
98
+
This allows for you to be able to just send the static properties when executing Spring application in `generateOpenApiDocs`.
0 commit comments