From d608141992894d4917d746f5a324c29f1ce8a8ab Mon Sep 17 00:00:00 2001 From: Jens Klingenberg Date: Sat, 3 Jun 2023 09:21:01 +0200 Subject: [PATCH] chore: Update (Ktor 2.3.1, Kotlin Poet 1.14.2) (#333) --- docs/CHANGELOG.md | 1 + example/AndroidOnlyExample/app/build.gradle.kts | 2 +- example/MultiplatformExample/shared/build.gradle.kts | 2 +- gradle/libs.versions.toml | 7 ++++--- .../jensklingenberg/ktorfit/RequestConverterTextKtTest.kt | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 27a340681..f8283e3d7 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added ### Changed +- Upgrade dependencies: Ktor 2.3.1 ### Deprecated diff --git a/example/AndroidOnlyExample/app/build.gradle.kts b/example/AndroidOnlyExample/app/build.gradle.kts index bbe1e3b02..3be326828 100644 --- a/example/AndroidOnlyExample/app/build.gradle.kts +++ b/example/AndroidOnlyExample/app/build.gradle.kts @@ -54,7 +54,7 @@ tasks.withType().configureEach jvmTarget = "1.8" } } -val ktor = "2.3.0" +val ktor = "2.3.1" val compose_ui_version = "1.4.3" dependencies { ksp("de.jensklingenberg.ktorfit:ktorfit-ksp:$ktorfit") diff --git a/example/MultiplatformExample/shared/build.gradle.kts b/example/MultiplatformExample/shared/build.gradle.kts index 7b0dd4f68..15963263f 100644 --- a/example/MultiplatformExample/shared/build.gradle.kts +++ b/example/MultiplatformExample/shared/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } version = "1.0" -val ktorVersion = "2.3.0" +val ktorVersion = "2.3.1" val ktorfitVersion = "1.4.0" configure { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 79b6fef0a..1cf62dfce 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,18 +4,19 @@ coroutines = "1.6.4" detekt = "1.22.0" kctfork = "0.2.1" kotlin = "1.8.21" -kotlinPoet = "1.13.2" +kotlinPoet = "1.14.2" kspVersion = "1.8.21-1.0.11" ktorfit = "1.4.0" ktorfit-lib = "1.4.0" -ktorVersion = "2.3.0" +ktorVersion = "2.3.1" dokkaVersion = "1.8.10" +gradleMavenPublishPlugin = "0.24.0" [libraries] android-build-gradle = "com.android.tools.build:gradle:7.4.0" autoService = { module = "com.google.auto.service:auto-service", version.ref = "autoService" } dokka-gradle-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokkaVersion" } -gradle-maven-publish-plugin = "com.vanniktech:gradle-maven-publish-plugin:0.24.0" +gradle-maven-publish-plugin = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "gradleMavenPublishPlugin" } junit = "junit:junit:4.13.2" kctfork-core = { module = "dev.zacsweers.kctfork:core", version.ref = "kctfork" } kctfork-ksp = { module = "dev.zacsweers.kctfork:ksp", version.ref = "kctfork" } diff --git a/ktorfit-ksp/src/test/kotlin/de/jensklingenberg/ktorfit/RequestConverterTextKtTest.kt b/ktorfit-ksp/src/test/kotlin/de/jensklingenberg/ktorfit/RequestConverterTextKtTest.kt index e180aea76..d0e5b9f7b 100644 --- a/ktorfit-ksp/src/test/kotlin/de/jensklingenberg/ktorfit/RequestConverterTextKtTest.kt +++ b/ktorfit-ksp/src/test/kotlin/de/jensklingenberg/ktorfit/RequestConverterTextKtTest.kt @@ -18,7 +18,7 @@ class RequestConverterTextKtTest { @Test fun generateCorrectFunction() { - val expected = """public fun TestFunction(): kotlin.Unit { + val expected = """public fun TestFunction() { val test1: com.example.Test = ktorfitClient.convertParameterType(test1,test1::class,com.example.Test::class) } """