openapi-generator/modules/openapi-generator-gradle-plugin/samples/local-spec
William Cheng 5745f6df70
Prepare 3.2.3 release (#935)
* update release version, disabled ensure up to date script

* update release table

* update stable version to 3.2.3

* update samples/meta-codegen/lib/pom.xml and release_version_update.sh
2018-08-30 19:08:03 +08:00
..
.gitignore [gradle-plugin] Initial implementation (#162) 2018-05-31 19:23:05 +08:00
build.gradle [gradle] Support nullable system property values (#764) 2018-08-09 15:56:15 +08:00
gradle.properties Prepare 3.2.3 release (#935) 2018-08-30 19:08:03 +08:00
petstore-v3.0-invalid.yaml [gradle-plugin] Initial implementation (#162) 2018-05-31 19:23:05 +08:00
petstore-v3.0.yaml [gradle-plugin] Initial implementation (#162) 2018-05-31 19:23:05 +08:00
README.md Prepare 3.2.3 release (#935) 2018-08-30 19:08:03 +08:00
settings.gradle [gradle-plugin] Initial implementation (#162) 2018-05-31 19:23:05 +08:00

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 generateGoWithInvalidSpec

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

gradle -PopenApiGeneratorVersion=3.2.3 openApiValidate