Swagger Codegen Kotlin
$ ./gradlew run -PappArgs="['generate', '-l', 'kotlin', '-i', 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v2.0/yaml/petstore.yaml', '-c', 'path/to/config.json', '-o', 'path/to/output']"
SwaggerCodegen for Kotlin (now supporting Retrofit2+RxJava2 only)
Kotlin
$ ./gradlew run -PappArgs="['generate', '-l', 'kotlin', '-i', 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v2.0/yaml/petstore.yaml', '-c', 'path/to/config.json', '-o', 'path/to/output']"