Skip to content

chore: #608 update kotlin and kotlinx versions#611

Open
devcrocod wants to merge 3 commits intomainfrom
devcrocod/update-kotlin-and-ktor
Open

chore: #608 update kotlin and kotlinx versions#611
devcrocod wants to merge 3 commits intomainfrom
devcrocod/update-kotlin-and-ktor

Conversation

@devcrocod
Copy link
Contributor

@devcrocod devcrocod commented Mar 18, 2026

bumps:

  • gradle wrapper 9.3.1 -> 9.4.0
  • kotlin 2.2.21 -> 2.3.20
  • ktor 3.2.3 -> 3.3.3
  • kotlinx-io 0.8.2 -> 0.9.0
  • kotlinx-serialization 1.9.0 -> 1.10.0

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Unfortunately, CodeQL does not yet support the latest version of Kotlin

Colses #608

Copilot AI review requested due to automatic review settings March 18, 2026 18:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the build toolchain and Kotlin ecosystem dependencies across the root project and standalone Gradle sample builds, primarily by bumping the Gradle wrapper and shared version-catalog entries.

Changes:

  • Bump Gradle wrapper from 9.3.1 to 9.4.0 (root + samples).
  • Update Kotlin to 2.3.20 and refresh several Kotlin ecosystem dependencies (Ktor, kotlinx-io, kotlinx-serialization, etc.) in version catalogs.
  • Update sample-specific version catalogs (e.g., mcp-kotlin, shadow, anthropic) to keep samples building with current dependencies.

Reviewed changes

Copilot reviewed 15 out of 21 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
samples/weather-stdio-server/gradlew Gradle wrapper script regenerated for 9.4.0.
samples/weather-stdio-server/gradle/wrapper/gradle-wrapper.properties Points sample wrapper distribution to Gradle 9.4.0.
samples/weather-stdio-server/gradle/wrapper/gradle-wrapper.jar Updates the checked-in wrapper JAR for the sample.
samples/weather-stdio-server/gradle/libs.versions.toml Bumps Kotlin/Ktor/logging/shadow versions for the sample.
samples/simple-streamable-server/gradlew Gradle wrapper script regenerated for 9.4.0.
samples/simple-streamable-server/gradle/wrapper/gradle-wrapper.properties Points sample wrapper distribution to Gradle 9.4.0.
samples/simple-streamable-server/gradle/libs.versions.toml Bumps Kotlin/Ktor/shadow versions for the sample.
samples/kotlin-mcp-server/gradlew Gradle wrapper script regenerated for 9.4.0.
samples/kotlin-mcp-server/gradle/wrapper/gradle-wrapper.properties Points sample wrapper distribution to Gradle 9.4.0.
samples/kotlin-mcp-server/gradle/libs.versions.toml Bumps Kotlin/Ktor/mcp-kotlin/shadow versions for the sample.
samples/kotlin-mcp-client/gradlew Gradle wrapper script regenerated for 9.4.0.
samples/kotlin-mcp-client/gradle/wrapper/gradle-wrapper.properties Points sample wrapper distribution to Gradle 9.4.0.
samples/kotlin-mcp-client/gradle/libs.versions.toml Bumps anthropic + Kotlin/Ktor/shadow versions for the sample.
gradlew.bat Regenerated/normalized Gradle Windows wrapper script.
gradlew Gradle wrapper script regenerated for 9.4.0.
gradle/wrapper/gradle-wrapper.properties Points root wrapper distribution to Gradle 9.4.0.
gradle/wrapper/gradle-wrapper.jar Updates the checked-in root wrapper JAR.
gradle/libs.versions.toml Updates root version catalog (Kotlin/Ktor/kotlinx-io/serialization/logging).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@devcrocod devcrocod requested review from e5l and kpavlov March 18, 2026 21:28
@devcrocod devcrocod marked this pull request as ready for review March 18, 2026 21:28
Copilot AI review requested due to automatic review settings March 18, 2026 21:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Gradle wrapper and Kotlin ecosystem dependency versions across the root build and the standalone samples/* Gradle builds to keep the repo aligned with newer Kotlin/Ktor/kotlinx releases.

Changes:

  • Bump Gradle wrapper distribution from 9.3.1 to 9.4.0 (root + samples), including wrapper scripts/jars.
  • Bump Kotlin to 2.3.20 and Ktor to 3.3.3 across version catalogs (root + samples).
  • Bump kotlinx-io and kotlinx-serialization versions in the root version catalog (plus additional version catalog bumps in samples).

Reviewed changes

Copilot reviewed 15 out of 21 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
samples/weather-stdio-server/gradlew Regenerated Gradle start script reference for wrapper update.
samples/weather-stdio-server/gradle/wrapper/gradle-wrapper.properties Updates sample wrapper distribution URL to Gradle 9.4.0.
samples/weather-stdio-server/gradle/wrapper/gradle-wrapper.jar Updates sample wrapper JAR content.
samples/weather-stdio-server/gradle/libs.versions.toml Bumps Kotlin/Ktor/Shadow/logging versions for the weather sample.
samples/simple-streamable-server/gradlew Regenerated Gradle start script reference for wrapper update.
samples/simple-streamable-server/gradle/wrapper/gradle-wrapper.properties Updates sample wrapper distribution URL to Gradle 9.4.0.
samples/simple-streamable-server/gradle/libs.versions.toml Bumps Kotlin/Ktor/Shadow versions for the streamable sample.
samples/kotlin-mcp-server/gradlew Regenerated Gradle start script reference for wrapper update.
samples/kotlin-mcp-server/gradle/wrapper/gradle-wrapper.properties Updates sample wrapper distribution URL to Gradle 9.4.0.
samples/kotlin-mcp-server/gradle/libs.versions.toml Bumps Kotlin/Ktor/mcp-kotlin/Shadow versions for the server sample.
samples/kotlin-mcp-client/gradlew Regenerated Gradle start script reference for wrapper update.
samples/kotlin-mcp-client/gradle/wrapper/gradle-wrapper.properties Updates sample wrapper distribution URL to Gradle 9.4.0.
samples/kotlin-mcp-client/gradle/libs.versions.toml Bumps Kotlin/Ktor/Shadow and anthropic client versions for the client sample.
gradlew.bat Wrapper script updated/regenerated (formatting/line ending normalization).
gradlew Regenerated Gradle start script reference for wrapper update.
gradle/wrapper/gradle-wrapper.properties Updates root wrapper distribution URL to Gradle 9.4.0.
gradle/wrapper/gradle-wrapper.jar Updates root wrapper JAR content.
gradle/libs.versions.toml Bumps Kotlin/Ktor/kotlinx-io/serialization and logging versions in the root version catalog.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@kpavlov kpavlov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's avoid upgrading tooling and dependencies in a single PR: while some changes are fine, others are questionable.

Let's upgrade Kotlin and Ktor separately, after confirming that it is safe.

detekt = "2.0.0-alpha.2"
dokka = "2.1.0"
kotlin = "2.2.21"
kotlin = "2.3.20"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a breaking change. Did you confirm that at least our internal users are not affected?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you confirm that at least our internal users are not affected?

yes

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9.4.1 released today

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do u think update it on this pr?
or dependabot pr?

mcp-kotlin = "0.9.0"
slf4j = "2.0.17"
shadow = "9.2.2"
shadow = "9.4.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9.4.1 released today

@kpavlov kpavlov changed the title chore: update kotlin and kotlinx versions chore: #608 update kotlin and kotlinx versions Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants