MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
509 stars 437 forks source link

[FG5.1] fg.deobf(...) does not seem to work with Java 16 #813

Closed SuperMartijn642 closed 3 years ago

SuperMartijn642 commented 3 years ago

Versions:

Issue:

With FG5, fg.deobf doesn't seem to work on jars compiled with Java 16. Jars compiled with Java 8 work fine. This means any mods compiled for 1.17 currently don't work with fg.deobf. It gives the error 'Unsupported class file major version 60'.

Related issue: https://github.com/MinecraftForge/MinecraftForge/issues/7889

Build.gradle: https://gist.github.com/SuperMartijn642/b0dc7cd791a21e776648f63a2de9c99a

Gradle log: https://gist.github.com/SuperMartijn642/9e7cba68b8eba27afe8b2898b39330dd

sciwhiz12 commented 3 years ago

It seems that the InstallerTools version is still 1.1.10, even though the latest version is 1.2.7, with the version that first supports Java 16 (due to the ASM bump) being 1.2.4.

SizableShrimp commented 3 years ago

Fixed in 8ead65a2a4c5a2bdcdd05f2c1ce3df492e7345c6