本文へ移動
cccskills
無料GitHub で公開

ktor

Conventions for Ktor Gradle modules

日本語の概要は準備中です。原文の説明を表示しています。

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

1. Keep the Kotlin Gradle plugin new enough to support the configured JVM toolchain

compileKotlin and compileJava must target the same JVM bytecode version. When a module sets:

kotlin {
    jvmToolchain(25)
}

Gradle applies toolchain 25 to both tasks, but the Kotlin compiler silently caps compileKotlin to the highest JVM target it supports, which lags behind the JDK's own release cadence. An old kotlin("jvm") plugin version (e.g. 2.1.21) paired with a new toolchain (e.g. 25) produces:

❌ Inconsistent JVM Target Compatibility Between Java and Kotlin Tasks
Inconsistent JVM-target compatibility detected for tasks 'compileJava' (25) and 'compileKotlin' (23).

Fix by bumping the Kotlin Gradle plugin version in plugins { kotlin("jvm") version "..." } to a release that supports the toolchain's JVM target, rather than lowering the toolchain. Match the Kotlin version already used by other modules in the repo that target the same JVM (e.g. online-product-shop uses 2.3.0 with JavaLanguageVersion.of(25)).

Checklist

[] kotlin("jvm") plugin version supports the JVM version set by jvmToolchain(...) / JavaLanguageVersion.of(...) [] ./gradlew compileKotlin compileJava succeeds with no "Inconsistent JVM Target Compatibility" error

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

angular

無料

Conventions for Angular applications

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

Conventions for using annotations in all tests using Jupiter

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

docker

無料

Conventions for docker

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

Conventions for using in all JEE frameworks. These are common standards for CDI

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

Conventions for using Java

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

Conventions for using in all JVM languages

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/healthy-cameras32026年8月11日 更新

jesperancinha のスキルをすべて見る

このスキルの問題を報告する