Closed kutschkem closed 11 months ago
It looks your jar includes class file compiled for java 9 or later. ForgeGradle doesn't support java 9/later compilation target.
When you're shadowing some library jar file, don't forget to exclude META-INF/versions/<n>
, which includes class file for java 9 or later.
Hmm isn't this trying to deobfuscate the minecraft jar? Ok I'll double check if anything else in the build is using anything apart from Java 8. Should not.
I forgot to mention this happens when doing the setupDecompWorkspace.
Sorry for not checking the task name.
I found your project has ow2 asm 5.0 as dependencies of buildSrc. my fork of FG requires modern ow2 asm so please try upgrading asm. Dependencies in buildSrc overrides buildscript dependencies.
@anatawa12 Thanks, that seems like it did the trick. Now I suppose I'll have to update some code to account for the update, but compiler issues seem much more manageable than this cryptic problem.
I updated to asm 9.5 as dependency, then the deobfuscateJar worked.
This is a peculiar problem I only see when I try to build this project (branch legacy-1710-gradle7), I have previously succeeded in more simple projects. Any ideas what could be wrong here?
https://scans.gradle.com/s/2dwej4gvk3654/failure#1