that cryptic error message is from Groovy closuress (imo, itβs a not-so-subtle hint to use Kotlin for build scripts).
For your specific situation - JVM toolchains were introduced in Gradle 6.7, you are running Gradle 6.5.
π 1
π 1
e
Eric Kolotyluk
11/15/2022, 6:15 PM
Ahhh... our repo is infested with many different versions of Gradle wrapper, but it is very difficult updating gradle wrapper because it won't upgrade until all your other gradle files are sane...
Eric Kolotyluk
11/15/2022, 6:27 PM
Also, using Kotlin for build scripts is in no way possible for us. Our Big Ball Of Mud is too big to accommodate such a drastic change.
c
Chris Lee
11/15/2022, 6:28 PM
fair enough. fyi, it can be done incrementally, one script at t time.
e
Eric Kolotyluk
11/15/2022, 6:31 PM
You don't understand how messed up our environment is... While I would prefer to switch to Kotlin, doing this one script at a time would make the problem worse...