forked from loafle/openapi-generator-original
[Kotlin] Remove kotlin-reflect dependency when not needed (#5502)
* Remove kotlin-reflect dependency when using CodeGen * Update Kotlin tests * Regenerated unit test samples * Remove newline in generated build.gradle files
This commit is contained in:
parent
32e4361822
commit
47e24af369
@ -35,9 +35,9 @@ test {
|
||||
|
||||
dependencies {
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
{{#moshi}}
|
||||
{{^moshiCodeGen}}
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
compile "com.squareup.moshi:moshi-kotlin:1.9.2"
|
||||
{{/moshiCodeGen}}
|
||||
compile "com.squareup.moshi:moshi-adapters:1.9.2"
|
||||
@ -55,9 +55,25 @@ dependencies {
|
||||
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.2"
|
||||
{{/jackson}}
|
||||
{{#jvm-okhttp3}}
|
||||
{{^moshi}}
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
{{/moshi}}
|
||||
{{#moshi}}
|
||||
{{#modeCodeGen}}
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
{{/modeCodeGen}}
|
||||
{{/moshi}}
|
||||
compile "com.squareup.okhttp3:okhttp:3.12.6"
|
||||
{{/jvm-okhttp3}}
|
||||
{{#jvm-okhttp4}}
|
||||
{{^moshi}}
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
{{/moshi}}
|
||||
{{#moshi}}
|
||||
{{#modeCodeGen}}
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
{{/modeCodeGen}}
|
||||
{{/moshi}}
|
||||
compile "com.squareup.okhttp3:okhttp:4.2.2"
|
||||
{{/jvm-okhttp4}}
|
||||
{{#threetenbp}}
|
||||
|
@ -29,8 +29,8 @@ test {
|
||||
|
||||
dependencies {
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
compile "com.google.code.gson:gson:2.8.6"
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
compile "com.squareup.okhttp3:okhttp:4.2.2"
|
||||
testCompile "io.kotlintest:kotlintest-runner-junit5:3.1.0"
|
||||
}
|
||||
|
@ -29,10 +29,10 @@ test {
|
||||
|
||||
dependencies {
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.10.2"
|
||||
compile "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.10.2"
|
||||
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.2"
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
compile "com.squareup.okhttp3:okhttp:4.2.2"
|
||||
testCompile "io.kotlintest:kotlintest-runner-junit5:3.1.0"
|
||||
}
|
||||
|
@ -30,7 +30,6 @@ test {
|
||||
|
||||
dependencies {
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
compile "com.squareup.moshi:moshi-adapters:1.9.2"
|
||||
compile "com.squareup.moshi:moshi:1.9.2"
|
||||
kapt "com.squareup.moshi:moshi-kotlin-codegen:1.9.2"
|
||||
|
Loading…
x
Reference in New Issue
Block a user