forked from loafle/openapi-generator-original
* [kotlin] array->List instead of Array Serialization to/from primitive arrays can cause issues with valid responses. This commit considers swagger 'array' types as 'List' which, although not as memory efficient should provide a cleaner interface for users (and avoid serialization issues). Also, updates README.md to list new generator and excludes folder at samples/client/kotlin/bin/, which is not used. * [kotlin] Move sample under conventional directory samples/client/kotlin/ -> samples/client/petstore/kotlin/ Updated new.sh to generate client/server/docs into similar structure. Current documentation generators (cwiki, html, html.md, html2) aren't following a convention like client/server generators.
32 lines
743 B
Groovy
32 lines
743 B
Groovy
group 'io.swagger'
|
|
version '1.0.0'
|
|
|
|
task wrapper(type: Wrapper) {
|
|
gradleVersion = '3.3'
|
|
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
|
|
}
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.1.2'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
|
|
compile "com.squareup.moshi:moshi-kotlin:1.5.0"
|
|
compile "com.squareup.moshi:moshi-adapters:1.5.0"
|
|
compile "com.squareup.okhttp3:okhttp:3.8.0"
|
|
testCompile "io.kotlintest:kotlintest:2.0.2"
|
|
} |