Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 2e183e9

Browse files
committed
Update Kotlin and libraries
1 parent 9f07afb commit 2e183e9

File tree

5 files changed

+19
-21
lines changed

5 files changed

+19
-21
lines changed

‎gradle/libs.versions.toml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[versions]
2-
kotlin = "1.9.22"
3-
ksp = "1.9.22-1.0.17"
4-
ktor = "2.3.7"
2+
kotlin = "2.0.20"
3+
ksp = "2.0.20-1.0.24"
4+
ktor = "2.3.13"
55
kotlinx-serialization = "1.6.2"
66
jvm-toolchain = "11"
7-
kotlin-jupyter = "0.12.0-142"
8-
kotlinpoet = "1.18.1"
9-
dataframe = "0.13.1"
7+
kotlin-jupyter = "0.12.0-421"
8+
kotlinpoet = "2.1.0"
9+
dataframe = "0.15.0"
1010

1111
[plugins]
1212
kotlin-jvm ={id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
@@ -19,6 +19,7 @@ kotlin-reflect ={module = "org.jetbrains.kotlin:kotlin-reflect", version.ref =
1919
dataframe ={module = "org.jetbrains.kotlinx:dataframe", version.ref = "dataframe" }
2020
ktor-client-core ={module = "io.ktor:ktor-client-core-jvm", version.ref = "ktor" }
2121
ktor-client-cio ={module = "io.ktor:ktor-client-cio-jvm", version.ref = "ktor" }
22+
ktor-client-mock ={module = "io.ktor:ktor-client-mock-jvm", version.ref = "ktor" }
2223
ktor-client-content-negotiation ={module = "io.ktor:ktor-client-content-negotiation-jvm", version.ref = "ktor" }
2324
ktor-serialization-kotlinx-json ={module = "io.ktor:ktor-serialization-kotlinx-json-jvm", version.ref = "ktor" }
2425

‎ktor-client-core/build.gradle.kts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ kotlinJupyter{
1111
}
1212

1313
dependencies{
14-
testImplementation(libs.kotlin.test)
15-
testImplementation(libs.dataframe)
1614
api(libs.ktor.client.core)
1715
runtimeOnly(libs.ktor.client.cio)
1816
compileOnly(libs.dataframe)

‎ktor-client/build.gradle.kts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ kotlinJupyter{
1313
dependencies{
1414
api(project(":ktor-client-core"))
1515
api(project(":serialization"))
16+
17+
testImplementation(libs.kotlin.test)
18+
testImplementation(libs.kotlinx.serialization.json)
19+
testImplementation(libs.ktor.client.mock)
20+
testImplementation(libs.dataframe){
21+
exclude(group ="org.jetbrains.kotlinx", module ="kotlinx-serialization-core")
22+
exclude(group ="org.jetbrains.kotlinx", module ="kotlinx-serialization-json")
23+
}
1624
}
1725

1826
tasks.test{

ktor-client-core/src/test/kotlin/KtorClientCoreIntegrationTest.kt renamed to ktor-client/src/test/kotlin/KtorClientCoreIntegrationTest.kt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
packageorg.jetbrains.kotlinx.jupyter.ktor.client.core
1+
packageorg.jetbrains.kotlinx.jupyter.ktor.client.test
22

33
importkotlinx.serialization.json.JsonElement
44
importorg.intellij.lang.annotations.Language
55
importorg.jetbrains.kotlinx.dataframe.DataFrame
66
importorg.jetbrains.kotlinx.jupyter.repl.result.EvalResultEx
77
importorg.jetbrains.kotlinx.jupyter.testkit.JupyterReplTestCase
88
importorg.jetbrains.kotlinx.jupyter.testkit.ReplProvider
9-
importorg.junit.jupiter.api.Test
9+
importkotlin.test.Test
1010
importkotlin.test.assertEquals
1111
importkotlin.test.assertIs
1212

1313
classKtorClientCoreIntegrationTest : JupyterReplTestCase(
14-
replProvider = ReplProvider.withDefaultClasspathResolution(),
14+
replProvider = ReplProvider.Companion.withDefaultClasspathResolution(),
1515
){
1616
@Test
1717
fun`default client engine`(){
@@ -50,9 +50,6 @@ class KtorClientCoreIntegrationTest : JupyterReplTestCase(
5050
val json ="""{"b":"b","a":{"b":"b","a":null}}"""
5151
execRaw(
5252
"""
53-
%use serialization
54-
@file:DependsOn("io.ktor:ktor-client-mock-jvm:2.3.7")
55-
5653
import io.ktor.client.engine.mock.*
5754
import io.ktor.client.plugins.contentnegotiation.*
5855
import io.ktor.http.*
@@ -101,9 +98,6 @@ class KtorClientCoreIntegrationTest : JupyterReplTestCase(
10198
val json ="""[{"a": 1},{"a": 2},{"a": 3}]"""
10299
execRaw(
103100
"""
104-
%use serialization
105-
@file:DependsOn("io.ktor:ktor-client-mock-jvm:2.3.7")
106-
107101
import io.ktor.client.engine.mock.*
108102
import io.ktor.client.plugins.contentnegotiation.*
109103
import io.ktor.http.*
@@ -136,9 +130,6 @@ class KtorClientCoreIntegrationTest : JupyterReplTestCase(
136130
fun`cannot create dataframe from response that doesn't return json`(){
137131
execRaw(
138132
"""
139-
%use serialization
140-
@file:DependsOn("io.ktor:ktor-client-mock-jvm:2.3.7")
141-
142133
import io.ktor.client.engine.mock.*
143134
import io.ktor.client.plugins.contentnegotiation.*
144135
import io.ktor.http.*

‎settings.gradle.kts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins{
2-
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0"
2+
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
33
}
44
rootProject.name ="notebooks-ktor-client"
55
include("json2kt")

0 commit comments

Comments
(0)