Skip to content

Commit

Permalink
KTOR-6059 Bump Ktor to 2.3.2 (#175)
Browse files Browse the repository at this point in the history
* KTOR-6059 Bump Ktor to 2.3.2
* KTOR-6059 Update Kotlin version
* KTOR-6059 Fix YouKube test by updating cookies only when Set-Cookie header is received
  • Loading branch information
Stexxe authored Jun 29, 2023
1 parent 8fdc2db commit f4560b8
Show file tree
Hide file tree
Showing 40 changed files with 68 additions and 65 deletions.
4 changes: 2 additions & 2 deletions chat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22"
}
}

Expand Down Expand Up @@ -33,7 +33,7 @@ kotlin {

sourceSets.each {
it.dependencies {
implementation(project.dependencies.enforcedPlatform("io.ktor:ktor-bom:2.3.1"))
implementation(project.dependencies.enforcedPlatform("io.ktor:ktor-bom:2.3.2"))
}
}

Expand Down
2 changes: 1 addition & 1 deletion client-mpp/shared/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ kotlin {

sourceSets.each {
it.dependencies {
implementation(project.dependencies.enforcedPlatform("io.ktor:ktor-bom:2.3.1"))
implementation(project.dependencies.enforcedPlatform("io.ktor:ktor-bom:2.3.2"))
}
}

Expand Down
2 changes: 1 addition & 1 deletion client-multipart/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
classpath "io.ktor.plugin:plugin:2.3.1"
classpath "io.ktor.plugin:plugin:2.3.2"
}
}

Expand Down
2 changes: 1 addition & 1 deletion client-tools/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
classpath "io.ktor.plugin:plugin:2.3.1"
classpath "io.ktor.plugin:plugin:2.3.2"
}
}

Expand Down
6 changes: 3 additions & 3 deletions di-kodein/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("plugin.serialization") version "1.8.0"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
kotlin("plugin.serialization") version "1.8.22"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion di-kodein/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
4 changes: 2 additions & 2 deletions filelisting/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion filelisting/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
4 changes: 2 additions & 2 deletions fullstack-mpp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22"
}
}

Expand All @@ -29,7 +29,7 @@ kotlin {

sourceSets.each {
it.dependencies {
implementation(project.dependencies.enforcedPlatform("io.ktor:ktor-bom:2.3.1"))
implementation(project.dependencies.enforcedPlatform("io.ktor:ktor-bom:2.3.2"))
}
}

Expand Down
2 changes: 1 addition & 1 deletion graalvm/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
application
kotlin("jvm") version "1.7.20"
id("io.ktor.plugin") version "2.3.1"
id("io.ktor.plugin") version "2.3.2"
id("org.graalvm.buildtools.native") version "0.9.11"
}

Expand Down
2 changes: 1 addition & 1 deletion h2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ val logback_version: String by project
plugins {
application
kotlin("jvm") version "1.7.20"
id("io.ktor.plugin") version "2.3.1"
id("io.ktor.plugin") version "2.3.2"
}

group = "io.ktor.samples"
Expand Down
4 changes: 2 additions & 2 deletions httpbin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion httpbin/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official

Expand Down
6 changes: 3 additions & 3 deletions jwt-auth-tests/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
kotlin("jvm") version "1.8.10"
kotlin("plugin.serialization") version "1.8.10"
id("io.ktor.plugin") version "2.3.1"
kotlin("jvm") version "1.8.22"
kotlin("plugin.serialization") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}

application {
Expand Down
6 changes: 3 additions & 3 deletions kweet/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ val logback_version: String by project
val exposed_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("plugin.serialization") version "1.8.0"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
kotlin("plugin.serialization") version "1.8.22"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion kweet/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
exposed_version=0.40.1
kotlin.code.style=official
4 changes: 2 additions & 2 deletions location-header/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion location-header/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
2 changes: 1 addition & 1 deletion maven-google-appengine-standard/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<dependency>
<groupId>io.ktor</groupId>
<artifactId>ktor-bom</artifactId>
<version>2.3.1</version>
<version>2.3.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
8 changes: 4 additions & 4 deletions mongodb/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ val logback_version: String by project
val mongodb_version: String by project

plugins {
kotlin("jvm") version "1.8.10"
id("io.ktor.plugin") version "2.3.1"
id("org.jetbrains.kotlin.plugin.serialization") version "1.8.10"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
id("org.jetbrains.kotlin.plugin.serialization") version "1.8.22"
}

group = "com.example"
Expand All @@ -32,7 +32,7 @@ dependencies {
implementation("org.litote.kmongo:kmongo:$mongodb_version")
testImplementation("io.ktor:ktor-server-tests-jvm")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
testImplementation("io.ktor:ktor-server-test-host-jvm:2.3.1")
testImplementation("io.ktor:ktor-server-test-host-jvm:2.3.2")
}

tasks.register("databaseInstance") {
Expand Down
2 changes: 1 addition & 1 deletion mongodb/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kotlin_version=1.8.10
kotlin_version=1.8.22
logback_version=1.2.11
mongodb_version=4.8.0
kotlin.code.style=official
4 changes: 2 additions & 2 deletions postgres/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.10"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.2.3"
id("org.jetbrains.kotlin.plugin.serialization") version "1.8.10"
id("org.jetbrains.kotlin.plugin.serialization") version "1.8.22"
}

group = "com.example"
Expand Down
2 changes: 1 addition & 1 deletion postgres/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.10
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
4 changes: 2 additions & 2 deletions redirect-with-exception/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion redirect-with-exception/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
4 changes: 2 additions & 2 deletions reverse-proxy-ws/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion reverse-proxy-ws/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
4 changes: 2 additions & 2 deletions reverse-proxy/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion reverse-proxy/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
4 changes: 2 additions & 2 deletions rx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion rx/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
4 changes: 2 additions & 2 deletions sse/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion sse/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
4 changes: 2 additions & 2 deletions structured-logging/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion structured-logging/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
6 changes: 3 additions & 3 deletions version-diff/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("plugin.serialization") version "1.8.0"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
kotlin("plugin.serialization") version "1.8.22"
}

group = "org.example"
Expand Down
2 changes: 1 addition & 1 deletion version-diff/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
6 changes: 3 additions & 3 deletions youkube/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ val kotlin_version: String by project
val logback_version: String by project

plugins {
kotlin("jvm") version "1.8.0"
id("io.ktor.plugin") version "2.3.1"
kotlin("plugin.serialization") version "1.8.0"
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
kotlin("plugin.serialization") version "1.8.22"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion youkube/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.8.0
kotlin_version=1.8.22
logback_version=1.2.11
kotlin.code.style=official
5 changes: 4 additions & 1 deletion youkube/src/test/kotlin/YoukubeApplicationTestLegacy.kt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ private fun CookieTrackerTestApplicationEngine.handleRequest(
addHeader("Cookie", cookieValue)
setup()
}.apply {
trackedCookies = response.headers.values("Set-Cookie").map { parseServerSetCookieHeader(it) }
val setCookie = response.headers.values("Set-Cookie")
if (setCookie.isNotEmpty()) {
trackedCookies = setCookie.map { parseServerSetCookieHeader(it) }
}
}
}

Expand Down

0 comments on commit f4560b8

Please sign in to comment.