https://kotlinlang.org logo
#konsist
Title
# konsist
y

Yonatan Karp-Rudin

10/08/2023, 7:53 PM
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

igor.wojda

10/09/2023, 6:06 AM
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

Yonatan Karp-Rudin

10/09/2023, 7:46 AM
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

Jonathan Sarco

10/10/2023, 9:55 AM
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.