Skip to content

Commit

Permalink
Update kotlin client dependencies to newer versions (#18211)
Browse files Browse the repository at this point in the history
* update kotlin client dependencies to newer versoins

* update
  • Loading branch information
wing328 authored Mar 23, 2024
1 parent aedf571 commit 4ca8f9c
Show file tree
Hide file tree
Showing 41 changed files with 193 additions and 166 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,29 @@ wrapper {
buildscript {
ext.kotlin_version = '1.8.10'
{{#jvm-ktor}}
ext.ktor_version = '2.2.3'
ext.ktor_version = '2.3.9'
{{/jvm-ktor}}
{{#jvm-retrofit2}}
ext.retrofitVersion = '2.9.0'
ext.retrofitVersion = '2.10.0'
{{/jvm-retrofit2}}
{{#useRxJava}}
ext.rxJavaVersion = '1.3.8'
{{/useRxJava}}
{{#useRxJava2}}
ext.rxJava2Version = '2.2.21'
{{/useRxJava2}}
{{#useRxJava3}}
ext.rxJava3Version = '3.0.12'
ext.rxJava3Version = '3.1.8'
{{/useRxJava3}}
{{#jvm-vertx}}
ext.vertx_version = "4.3.3"
ext.vertx_version = "4.5.6"
{{/jvm-vertx}}
{{#jvm-spring}}
{{#useSpringBoot3}}
ext.spring_boot_version = "3.2.0"
ext.spring_boot_version = "3.2.4"
{{/useSpringBoot3}}
{{^useSpringBoot3}}
ext.spring_boot_version = "2.7.12"
ext.spring_boot_version = "2.7.18"
{{/useSpringBoot3}}
{{#jvm-spring-webclient}}
ext.reactor_version = "3.5.6"
ext.reactor_version = "3.6.4"
{{/jvm-spring-webclient}}
{{/jvm-spring}}
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -126,31 +121,31 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
{{^doNotUseRxAndCoroutines}}
{{#useCoroutines}}
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0"
{{/useCoroutines}}
{{/doNotUseRxAndCoroutines}}
{{#moshi}}
{{^moshiCodeGen}}
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.squareup.moshi:moshi-kotlin:1.14.0"
implementation "com.squareup.moshi:moshi-adapters:1.14.0"
implementation "com.squareup.moshi:moshi-kotlin:1.15.1"
implementation "com.squareup.moshi:moshi-adapters:1.15.1"
{{/moshiCodeGen}}
{{#moshiCodeGen}}
implementation "com.squareup.moshi:moshi:1.14.0"
implementation "com.squareup.moshi:moshi-adapters:1.14.0"
kapt "com.squareup.moshi:moshi-kotlin-codegen:1.14.0"
implementation "com.squareup.moshi:moshi:1.15.1"
implementation "com.squareup.moshi:moshi-adapters:1.15.1"
kapt "com.squareup.moshi:moshi-kotlin-codegen:1.15.1"
{{/moshiCodeGen}}
{{/moshi}}
{{#gson}}
implementation "com.google.code.gson:gson:2.9.0"
implementation "com.google.code.gson:gson:2.10.1"
{{/gson}}
{{#jackson}}
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.14.3"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.3"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.17.0"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.0"
{{/jackson}}
{{#kotlinx_serialization}}
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3"
{{/kotlinx_serialization}}
{{#jvm-ktor}}
implementation "io.ktor:ktor-client-core:$ktor_version"
Expand All @@ -165,10 +160,10 @@ dependencies {
{{/jackson}}
{{/jvm-ktor}}
{{#jvm-okhttp3}}
implementation "com.squareup.okhttp3:okhttp:3.12.13"
implementation "com.squareup.okhttp3:okhttp:3.14.9"
{{/jvm-okhttp3}}
{{#jvm-okhttp4}}
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
{{/jvm-okhttp4}}
{{#jvm-spring-webclient}}
implementation "org.springframework.boot:spring-boot-starter-webflux:$spring_boot_version"
Expand All @@ -181,24 +176,16 @@ dependencies {
implementation "org.threeten:threetenbp:1.6.8"
{{/threetenbp}}
{{#kotlinx-datetime}}
implementation "org.jetbrains.kotlinx:kotlinx-datetime:0.4.0"
implementation "org.jetbrains.kotlinx:kotlinx-datetime:0.5.0"
{{/kotlinx-datetime}}
{{#jvm-retrofit2}}
{{#hasOAuthMethods}}
implementation "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.2"
{{/hasOAuthMethods}}
implementation "com.squareup.okhttp3:logging-interceptor:4.10.0"
{{#useRxJava}}
implementation "io.reactivex:rxjava:$rxJavaVersion"
implementation "com.squareup.retrofit2:adapter-rxjava:$retrofitVersion"
{{/useRxJava}}
{{#useRxJava2}}
implementation "io.reactivex.rxjava2:rxjava:$rxJava2Version"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion"
{{/useRxJava2}}
implementation "com.squareup.okhttp3:logging-interceptor:4.12.0"
{{#useRxJava3}}
implementation "io.reactivex.rxjava3:rxjava:$rxJava3Version"
implementation "com.squareup.retrofit2:adapter-rxjava3:2.9.0"
implementation "com.squareup.retrofit2:adapter-rxjava3:2.10.0"
{{/useRxJava3}}
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
{{#gson}}
Expand All @@ -208,7 +195,7 @@ dependencies {
implementation "com.squareup.retrofit2:converter-moshi:$retrofitVersion"
{{/moshi}}
{{#kotlinx_serialization}}
implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0"
implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0"
{{/kotlinx_serialization}}
{{#jackson}}
implementation "com.squareup.retrofit2:converter-jackson:$retrofitVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
ext.spring_boot_version = "3.2.0"
ext.spring_boot_version = "3.2.4"
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -61,8 +62,8 @@ kotlin {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.14.3"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.3"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.17.0"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.0"
implementation "org.springframework.boot:spring-boot-starter-web:$spring_boot_version"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
ext.spring_boot_version = "3.2.0"
ext.spring_boot_version = "3.2.4"
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -61,8 +62,8 @@ kotlin {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.14.3"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.3"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.17.0"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.0"
implementation "org.springframework.boot:spring-boot-starter-web:$spring_boot_version"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
ext.retrofitVersion = '2.9.0'
ext.retrofitVersion = '2.10.0'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -55,9 +56,9 @@ test {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
implementation "com.google.code.gson:gson:2.9.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.10.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0"
implementation "com.google.code.gson:gson:2.10.1"
implementation "com.squareup.okhttp3:logging-interceptor:4.12.0"
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -55,8 +56,8 @@ test {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.squareup.moshi:moshi-kotlin:1.14.0"
implementation "com.squareup.moshi:moshi-adapters:1.14.0"
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "com.squareup.moshi:moshi-kotlin:1.15.1"
implementation "com.squareup.moshi:moshi-adapters:1.15.1"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -55,8 +56,8 @@ test {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.squareup.moshi:moshi-kotlin:1.14.0"
implementation "com.squareup.moshi:moshi-adapters:1.14.0"
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "com.squareup.moshi:moshi-kotlin:1.15.1"
implementation "com.squareup.moshi:moshi-adapters:1.15.1"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -55,8 +56,8 @@ test {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.squareup.moshi:moshi-kotlin:1.14.0"
implementation "com.squareup.moshi:moshi-adapters:1.14.0"
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "com.squareup.moshi:moshi-kotlin:1.15.1"
implementation "com.squareup.moshi:moshi-adapters:1.15.1"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -55,8 +56,8 @@ test {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.squareup.moshi:moshi-kotlin:1.14.0"
implementation "com.squareup.moshi:moshi-adapters:1.14.0"
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "com.squareup.moshi:moshi-kotlin:1.15.1"
implementation "com.squareup.moshi:moshi-adapters:1.15.1"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -55,8 +56,8 @@ test {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.squareup.moshi:moshi-kotlin:1.14.0"
implementation "com.squareup.moshi:moshi-adapters:1.14.0"
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "com.squareup.moshi:moshi-kotlin:1.15.1"
implementation "com.squareup.moshi:moshi-adapters:1.15.1"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
ext.retrofitVersion = '2.9.0'
ext.retrofitVersion = '2.10.0'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -56,9 +57,9 @@ test {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.squareup.moshi:moshi-kotlin:1.14.0"
implementation "com.squareup.moshi:moshi-adapters:1.14.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.10.0"
implementation "com.squareup.moshi:moshi-kotlin:1.15.1"
implementation "com.squareup.moshi:moshi-adapters:1.15.1"
implementation "com.squareup.okhttp3:logging-interceptor:4.12.0"
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-moshi:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-scalars:$retrofitVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -55,8 +56,8 @@ test {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.squareup.moshi:moshi-kotlin:1.14.0"
implementation "com.squareup.moshi:moshi-adapters:1.14.0"
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "com.squareup.moshi:moshi-kotlin:1.15.1"
implementation "com.squareup.moshi:moshi-adapters:1.15.1"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
5 changes: 3 additions & 2 deletions samples/client/petstore/kotlin-gson/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -54,7 +55,7 @@ test {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "com.google.code.gson:gson:2.9.0"
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "com.google.code.gson:gson:2.10.1"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
7 changes: 4 additions & 3 deletions samples/client/petstore/kotlin-jackson/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -55,8 +56,8 @@ test {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.14.3"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.3"
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.17.0"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.0"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ wrapper {

buildscript {
ext.kotlin_version = '1.8.10'
// 6.13.0 is the latest stable release that supports JDK8
ext.spotless_version = "6.13.0"

repositories {
Expand Down Expand Up @@ -57,8 +58,8 @@ test {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}

Expand Down
Loading

0 comments on commit 4ca8f9c

Please sign in to comment.