William Cheng 2fd23f505e
Prepare 5.0.0-SNAPSHOT (#7347)
* Revert "Prepare 5.0.0-beta2 release (#7345)"

This reverts commit 212b4f784742744b7b238607dcefb23ec9db64d7.

* update readme
2020-09-04 15:31:54 +08:00
..
2020-05-31 19:14:31 +08:00
2020-09-04 15:31:54 +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