Slackbot
06/30/2023, 2:05 PMVampire
06/30/2023, 2:13 PMUnknown Kotlin JVM target
so this is most likely not a Gradle question, but a question for the Kotlin Gradle plugin.Vampire
06/30/2023, 2:13 PMMichael Zinn
06/30/2023, 2:14 PMMichael Zinn
06/30/2023, 2:15 PMMikhail Lopatkin
06/30/2023, 2:17 PMMichael Zinn
06/30/2023, 2:17 PMMichael Zinn
06/30/2023, 2:18 PMRunning Spotless on the entire project.
Type-safe project accessors is an incubating feature.
> Task :buildSrc:compileKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSrc:compileKotlin'.
> Error while evaluating property 'compilerOptions.jvmTarget' of task ':buildSrc:compileKotlin'.
> Failed to calculate the value of property 'jvmTarget'.
> Unknown Kotlin JVM target: 20
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
BUILD FAILED in 506ms
1 actionable task: 1 executed
Spotless Gradle task exit code: 1.
Completed Spotless hook.
Mikhail Lopatkin
06/30/2023, 2:18 PMVampire
06/30/2023, 2:19 PMMikhail Lopatkin
06/30/2023, 2:19 PMMichael Zinn
06/30/2023, 2:24 PM./gradlew -version
outputs this:
------------------------------------------------------------
Gradle 8.1.1
------------------------------------------------------------
Build time: 2023-04-21 12:31:26 UTC
Revision: 1cf537a851c635c364a4214885f8b9798051175b
Kotlin: 1.8.10
Groovy: 3.0.15
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 20.0.1 (Homebrew 20.0.1)
OS: Mac OS X 13.4.1 aarch64
So it looks like this should fit together?Mikhail Lopatkin
06/30/2023, 2:27 PMMichael Zinn
06/30/2023, 2:51 PMVampire
06/30/2023, 3:07 PMJAVA_HOME
that you said you have set to 20, or if it is not set the java
that is in the PATH