fwcd / fwcd/kotlin-language-server

linter ignores jvmtarget gradle config

Open
#657 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
2k
Forks
252
PR merge metrics
No merged PRs in 30d

Description

![Image](https://github.com/user-attachments/assets/fb55ad31-8fe0-4f2c-b6b9-a689947c644a)

That's in my build.gradle file:
```build.gradle
tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = 21
}
}
```

IntelliJ seems to be okay with it. And it compiles.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the build.gradle snippet and reproduce the linter behavior using the JavaCompile release and KotlinCompile jvmTarget settings shown there. Trace how the language server reads these Gradle configurations and verify that the linter recognizes the configured JVM target while preserving the existing IntelliJ-compatible compilation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.