Skip to content

Commit 8836013

Browse files
committed
[REQ] Upgrade ktor to 3.4.0
1 parent fbb99d2 commit 8836013

6 files changed

Lines changed: 18 additions & 21 deletions

File tree

modules/openapi-generator/src/main/resources/kotlin-server/libraries/ktor/build.gradle.kts.mustache

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ group = "{{groupId}}"
66
version = "{{artifactVersion}}"
77

88
plugins {
9-
kotlin("jvm") version "2.0.20"
10-
application
11-
kotlin("plugin.serialization") version "2.0.20"
9+
kotlin("jvm") version "2.3.0"
10+
id("io.ktor.plugin") version "3.4.0"
11+
kotlin("plugin.serialization") version "2.3.0"
1212
}
1313

1414
application {
15-
mainClass.set("io.ktor.server.netty.EngineMain")
15+
mainClass = "io.ktor.server.netty.EngineMain"
1616
1717
val isDevelopment: Boolean = project.ext.has("development")
1818
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
@@ -23,7 +23,6 @@ repositories {
2323
}
2424

2525
dependencies {
26-
implementation(platform("io.ktor:ktor-bom:3.0.2"))
2726
implementation("ch.qos.logback:logback-classic:$logback_version")
2827
{{#hasAuthMethods}}
2928
implementation("com.typesafe:config:1.4.1")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
kotlin.code.style=official
2-
ktor_version=3.0.2
3-
kotlin_version=2.0.20
2+
ktor_version=3.4.0
3+
kotlin_version=2.3.0
44
logback_version=1.5.19

samples/server/petstore/kotlin-server-modelMutable/build.gradle.kts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ group = "org.openapitools"
66
version = "1.0.0"
77

88
plugins {
9-
kotlin("jvm") version "2.0.20"
10-
application
11-
kotlin("plugin.serialization") version "2.0.20"
9+
kotlin("jvm") version "2.3.0"
10+
id("io.ktor.plugin") version "3.4.0"
11+
kotlin("plugin.serialization") version "2.3.0"
1212
}
1313

1414
application {
15-
mainClass.set("io.ktor.server.netty.EngineMain")
15+
mainClass = "io.ktor.server.netty.EngineMain"
1616

1717
val isDevelopment: Boolean = project.ext.has("development")
1818
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
@@ -23,7 +23,6 @@ repositories {
2323
}
2424

2525
dependencies {
26-
implementation(platform("io.ktor:ktor-bom:3.0.2"))
2726
implementation("ch.qos.logback:logback-classic:$logback_version")
2827
implementation("com.typesafe:config:1.4.1")
2928
implementation("io.ktor:ktor-server-auth")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
kotlin.code.style=official
2-
ktor_version=3.0.2
3-
kotlin_version=2.0.20
2+
ktor_version=3.4.0
3+
kotlin_version=2.3.0
44
logback_version=1.5.19

samples/server/petstore/kotlin-server/ktor/build.gradle.kts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ group = "org.openapitools"
66
version = "1.0.0"
77

88
plugins {
9-
kotlin("jvm") version "2.0.20"
10-
application
11-
kotlin("plugin.serialization") version "2.0.20"
9+
kotlin("jvm") version "2.3.0"
10+
id("io.ktor.plugin") version "3.4.0"
11+
kotlin("plugin.serialization") version "2.3.0"
1212
}
1313

1414
application {
15-
mainClass.set("io.ktor.server.netty.EngineMain")
15+
mainClass = "io.ktor.server.netty.EngineMain"
1616

1717
val isDevelopment: Boolean = project.ext.has("development")
1818
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
@@ -23,7 +23,6 @@ repositories {
2323
}
2424

2525
dependencies {
26-
implementation(platform("io.ktor:ktor-bom:3.0.2"))
2726
implementation("ch.qos.logback:logback-classic:$logback_version")
2827
implementation("com.typesafe:config:1.4.1")
2928
implementation("io.ktor:ktor-server-auth")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
kotlin.code.style=official
2-
ktor_version=3.0.2
3-
kotlin_version=2.0.20
2+
ktor_version=3.4.0
3+
kotlin_version=2.3.0
44
logback_version=1.5.19

0 commit comments

Comments
 (0)