FabricMC / fabric-example-mod

Example Fabric mod
Creative Commons Zero v1.0 Universal
1.66k stars 939 forks source link

Gradle Failure on JDK 21 #257

Closed MDevVal closed 1 year ago

MDevVal commented 1 year ago

I am currently using Linux 6.1.35-0-lts. However, whenever I try to execute any gradle command in this project using JDK 21, I encounter the following error

java.io.StreamCorruptedException: invalid type code: 00
> invalid type code: 00
modmuss50 commented 1 year ago

This appears to be a Gradle bug: https://github.com/gradle/gradle/issues/8285

I dont't think there is anything I can do to fix this. Please make sure that Gradle is always being ran with Java 21.

MDevVal commented 1 year ago

I am building in a container that only has jdk21 so that issue is not relevant and I am able to build other projects and parts of fabric with jdk21.

ElieGonzales commented 1 year ago

I am having the same issue. I have tried using a different SDK, and it changed nothing.

modmuss50 commented 1 year ago

I dont think there is anything I can do about this, hopefully it will be fixed once Gradle offically support JDK 21