Skip to content

Use Ktor version catalog in code snippets - #847

Open
horatiothomas wants to merge 1 commit into
ktorio:mainfrom
horatiothomas:main
Open

Use Ktor version catalog in code snippets#847
horatiothomas wants to merge 1 commit into
ktorio:mainfrom
horatiothomas:main

Conversation

@horatiothomas

@horatiothomas horatiothomas commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Made this change to make it easier to copy and paste Ktor libraries used in code snippets into projects using the latest Ktor versions

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Changes

The code snippets now share a ktorLibs version catalog. Their Ktor dependencies and selected Ktor Gradle plugin declarations use catalog aliases instead of explicit versions and Maven coordinates.

Dependency catalog migration

Layer / File(s) Summary
Version catalog foundation
codeSnippets/settings.gradle.kts
Adds Maven Central resolution, creates ktorLibs from ktor_version, and suppresses the unstable Gradle API warning.
Snippet dependency migrations
codeSnippets/snippets/*/build.gradle.kts
Migrates Ktor libraries and selected plugin declarations to ktorLibs aliases. Unrelated dependencies remain unchanged.

Estimated code review effort: 3 (Moderate) | ~30 minutes

Possibly related PRs

Suggested reviewers: bjhham

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main change: migrating code snippets to the Ktor version catalog.
Description check ✅ Passed The description explains that the change improves reuse of Ktor library declarations with current Ktor versions.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant