forked from loafle/openapi-generator-original
* Add multiple auth methods to ApiClient. ApiClient more configurable * Fixed missing close tag for isMultipart in api.mustache * Generated samples ./bin/kotlin-client-all.sh * Generated samples./bin/openapi3/kotlin-client-petstore-all.sh * Use of better way to add supporting files based on conditions * Fixed missing check for retrofit generating auth files * Generated samples Co-authored-by: Alexander Karkossa <alexander.karkossa@dataport.de>
40 lines
1.0 KiB
Groovy
40 lines
1.0 KiB
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.61'
|
|
|
|
repositories {
|
|
maven { url "https://repo1.maven.org/maven2" }
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
repositories {
|
|
maven { url "https://repo1.maven.org/maven2" }
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.0"
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
compile "com.squareup.moshi:moshi-kotlin:1.9.2"
|
|
compile "com.squareup.moshi:moshi-adapters:1.9.2"
|
|
compile "com.squareup.okhttp3:okhttp:4.2.2"
|
|
compile "com.squareup.okhttp3:logging-interceptor:4.4.0"
|
|
testCompile "io.kotlintest:kotlintest-runner-junit5:3.1.0"
|
|
}
|