forked from loafle/openapi-generator-original
* Fix kotlin templates to use okhttp 4.0.1. * Fix escaping of dataType field. * Fix handling of arrays/lists of enums.
38 lines
851 B
Groovy
38 lines
851 B
Groovy
group 'org.openapitools'
|
|
version '1.0.0'
|
|
|
|
wrapper {
|
|
gradleVersion = '4.9'
|
|
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
|
|
}
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.3.41'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
compile "com.squareup.moshi:moshi-kotlin:1.8.0"
|
|
compile "com.squareup.moshi:moshi-adapters:1.8.0"
|
|
compile "com.squareup.okhttp3:okhttp:4.0.1"
|
|
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.1.0"
|
|
}
|