File tree Expand file tree Collapse file tree
src/main/kotlin/io/github/ermadmi78/kobby/cinema/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ description = "Cinema API"
22
33plugins {
44 kotlin(" jvm" )
5- id(" io.github.ermadmi78.kobby" ) version " 1.6 .0"
5+ id(" io.github.ermadmi78.kobby" ) version " 2.0 .0"
66}
77
88dependencies {
99 // Add this dependency to enable Jackson annotation generation in DTO classes
10- compileOnly(" com.fasterxml.jackson.core:jackson-annotations:2.12.2 " )
10+ compileOnly(" com.fasterxml.jackson.core:jackson-annotations:2.13.4 " )
1111
1212 // Add this dependency to enable default Ktor adapters generation
13- compileOnly(" io.ktor:ktor-client-cio:1.5.4 " )
13+ compileOnly(" io.ktor:ktor-client-cio:2.1.2 " )
1414}
Original file line number Diff line number Diff line change @@ -12,14 +12,13 @@ dependencies {
1212 implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin .BOM_COORDINATES ))
1313 implementation(" org.springframework.boot:spring-boot-starter" )
1414
15- implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.12.2 " )
16- implementation(" com.fasterxml.jackson.module:jackson-module-parameter-names:2.12.2 " )
15+ implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.13.4 " )
16+ implementation(" com.fasterxml.jackson.module:jackson-module-parameter-names:2.13.4 " )
1717
18- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0 " )
18+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 " )
1919
20- implementation(" io.ktor:ktor-client-cio:1.5.4" )
21- implementation(" io.ktor:ktor-client-jackson:1.5.4" )
22- implementation(" io.ktor:ktor-client-websockets:1.5.4" )
20+ implementation(" io.ktor:ktor-client-cio:2.1.2" )
21+ implementation(" io.ktor:ktor-client-websockets:2.1.2" )
2322
2423 implementation(kotlin(" stdlib" ))
2524 implementation(kotlin(" reflect" ))
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import com.fasterxml.jackson.module.paramnames.ParameterNamesModule
66import io.github.ermadmi78.kobby.cinema.api.kobby.kotlin.*
77import io.github.ermadmi78.kobby.cinema.api.kobby.kotlin.adapter.ktor.CinemaCompositeKtorAdapter
88import io.ktor.client.*
9- import io.ktor.client.features.websocket.*
9+ import io.ktor.client.engine.cio.*
10+ import io.ktor.client.plugins.websocket.*
1011import kotlinx.coroutines.Dispatchers
1112import kotlinx.coroutines.Job
1213import kotlinx.coroutines.launch
@@ -214,7 +215,7 @@ class Application : CommandLineRunner {
214215
215216 private fun createKtorAdapter (): CinemaAdapter {
216217 // Create Ktor http client
217- val client = HttpClient {
218+ val client = HttpClient ( CIO ) {
218219 install(WebSockets )
219220 }
220221
Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ dependencies {
2929 implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin .BOM_COORDINATES ))
3030 implementation(" org.springframework.boot:spring-boot-starter-webflux" )
3131
32- implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.12.2 " )
32+ implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.13.4 " )
3333
3434 implementation(kotlin(" stdlib" ))
3535 implementation(kotlin(" reflect" ))
3636
37- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0 " )
38- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-reactive:1.5.0 " )
37+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 " )
38+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-reactive:1.6.4 " )
3939}
Original file line number Diff line number Diff line change 11# suppress inspection "UnusedProperty" for whole file
22kotlin.code.style =official
3- kotlin.version =1.5 .21
4- kotlinVersion =1.5 .21
3+ kotlin.version =1.6 .21
4+ kotlinVersion =1.6 .21
55
66group =io.github.ermadmi78
77version =0.0.0-SNAPSHOT
You can’t perform that action at this time.
0 commit comments