Skip to content
cccskills
FreePublished on GitHub

ktor

Conventions for Ktor Gradle modules

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md1.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Conventions for Angular applications

The English summary is being prepared. Showing the original description.

jesperancinha/healthy-cameras3Updated Aug 11, 2026

Conventions for using annotations in all tests using Jupiter

The English summary is being prepared. Showing the original description.

jesperancinha/healthy-cameras3Updated Aug 11, 2026

docker

Free

Conventions for docker

The English summary is being prepared. Showing the original description.

jesperancinha/healthy-cameras3Updated Aug 11, 2026

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

The English summary is being prepared. Showing the original description.

jesperancinha/healthy-cameras3Updated Aug 11, 2026

Conventions for using in all JVM languages

The English summary is being prepared. Showing the original description.

jesperancinha/healthy-cameras3Updated Aug 11, 2026

Conventions for using Java

The English summary is being prepared. Showing the original description.

jesperancinha/healthy-cameras3Updated Aug 11, 2026

See all skills by jesperancinha

Report a problem with this skill