Skip to content

[Bug]: Fails to compile (on newer JDKs?) #339

@vpzomtrrfrt

Description

@vpzomtrrfrt

Describe the bug

I'm not able to compile this project as is.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> ❌ Inconsistent JVM Target Compatibility Between Java and Kotlin Tasks
  Inconsistent JVM-target compatibility detected for tasks 'compileJava' (11) and 'compileKotlin' (21).

  Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain
  Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation

To Reproduce

  1. Run ./gradlew build

Expected behavior

It should compile

JavaSteam Version

32db7b8

Platform Version

Linux

JVM Version

openjdk 21.0.7

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions