mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-22 17:40:55 +00:00
* [gradle] Add recommendations to validate task * Use current version of Gradle Plugin in build checks. * Fix gradle project build version confusion in CI * [gradle] Bump samples to 5.2.1 wrapper Previously, the Gradle plugin was building in CI against openapi-generator 4.2.0 and Gradle version 4.10.2. At some point, a contribution was made with an API which is incomatible at 4.10.2 and due to a release script error which pinned the local-spec version to release 4.2.0, we didn't notice this inconsistency. This bumps the project to build against Gradle 5.2.1.
Local Spec Sample
This example assumes you have Gradle 4.7+ installed. No gradle wrapper is provided in samples.
First, publish the openapi-generator-gradle-plugin locally via ./gradlew assemble install
in the module directory.
Then, run the following tasks in this example directory.
gradle openApiGenerate
gradle openApiMeta
gradle openApiValidate
gradle buildGoSdk
gradle buildDotnetSdk
gradle generateGoWithInvalidSpec
The samples can be tested against other versions of the plugin using the openApiGeneratorVersion
property. For example:
gradle -PopenApiGeneratorVersion=4.2.3 openApiValidate