William Cheng 2578ef5e63
Prepare snapshot (v5.0.0) (#7986)
* Revert "prepare 5.0.0-beta3 release"

This reverts commit 3ebe774df37b43348bac1310a272de53a2d7040b.

* revert to snapshot

* update samples
2020-11-20 19:19:59 +08:00
..
2020-05-31 19:14:31 +08:00
2020-11-20 19:19:59 +08:00

Local Spec Sample

This example assumes you have Gradle 5.6.4+ installed. No gradle wrapper is provided in samples.

First, publish the openapi-generator-gradle-plugin locally via ./gradlew assemble publishToMavenLocal in the module directory.

Then, run the following tasks in this example directory.

gradle openApiGenerate              # expected outcome: BUILD SCCESSFUL
gradle openApiMeta                  # expected outcome: BUILD SCCESSFUL
gradle openApiValidate              # expected outcome: BUILD FAILED 
gradle buildGoSdk                   # expected outcome: BUILD SCCESSFUL
gradle buildDotnetSdk               # expected outcome: BUILD SCCESSFUL
gradle generateGoWithInvalidSpec    # expected outcome: BUILD FAILED 

The samples can be tested against other versions of the plugin using the openApiGeneratorVersion property. For example:

gradle -PopenApiGeneratorVersion=4.3.0 openApiValidate