Something borked in Gradle 8.7 specifically

Hi there,

I did something that apparently has completely borked my ability to use Gradle 8.7 (OS X, using IntelliJ IDEA), which seemed to happen when I was trying to resolve an issue with an existing Gradle 8.7 project.

I did an rm -rf ~/.gradle/caches, but now, whenever I try to configure gradle-wrapper.properties to use 8.7, I get an error:

Could not read workspace metadata from <insert home here>/.gradle/caches/8.7/groovy-dsl/63b1f5078942c813a2f0fd9bb03733e4/metadata.bin

IntelliJ won’t even download 8.7 at this point. Everything works fine with Gradle 8.5 and Gradle 8.10. I’ve tried deleting the 8.7 cache specifically, as well as deleting all the caches again, which again, only seems to be causing problems with 8.7.

Note: I am using the Kotlin DSL. Any help at all would be greatly appreciated.

Thanks so much,
Sebastian

I seemed to make some progress by deleting:

~/,gradle/wrapper/dists/gradle-8.7-bin

It redownloaded the gradle wrapper, but I’m still getting the original error.

That’s not progress, just a step back. It didn’t download 8.7, as it was already available locally. It also already used it as the error comes from it.

If recommend to just delete the whole ~/.gradle directory minus things your created manually like a gradle properties file or init scripts and then try again.