Hi again, I'm trying to run the `konsist` project ...
# konsist
y
Hi again, I'm trying to run the
konsist
project on my local machine (Macbook pro M2), with JVM 21 installed (
openjdk 21
), and when trying to sync Gradle I'm getting the following error:
Copy code
* What went wrong:
A problem occurred configuring project ':buildSrc'.
> Failed to calculate the value of task ':buildSrc:compileJava' property 'javaCompiler'.
   > No matching toolchains found for requested specification: {languageVersion=19, vendor=any, implementation=vendor-specific} for MAC_OS on aarch64.
      > No locally installed toolchains match and toolchain download repositories have not been configured.
I did not see any list of requirements in the documentation regarding to how to build the project locally, am I missing something?
i
Try to set JDK manually. You can install missing JDKs directly from IntelliJ IDEA - click on the
Module SDK
combo box and select
+Add SDK
. BTW I have updated Contributing page
❤️ 1
y
Seems that in my specific case the problem was that the JDK of Gradle was not set to version 19 (or newer), and I had to do this update on the project
IDK if it worth adding this to the above doc as well or not 😅
Feel free to close it if you think it's irrelevant - I've added this only as I spent some time figuring out the problem 🙈
j
You can also add this:
Copy code
kotlin {
    jvmToolchain(19)
}
to the build.gradle inside the
lib
module! If the IntelliJ doesn't work properly.
109 Views