Build failed when I tried to configure it for 1.20.6 support
sdy623 opened this issue ยท 3 comments
Your tool is a pretty good tool, with 1.20.6 releases I'm trying to make it work on 1.20.6, but it wents to a problem. It can't build on the edited configurations. Here is the log about the error, I changed the Farbic Loom version to the latest and it occurs an error about Gson. Could anyone help me to figure out the problems, I would appreciate that.
> Configure project :api
Targeting Minecraft '1.20.6' on a 'JOINED' platform
> Configure project :common
Targeting Minecraft '1.20.6' on a 'JOINED' platform
> Configure project :compatibility
Targeting Minecraft '1.20.6' on a 'JOINED' platform
> Configure project :fabric
Fabric Loom: 1.6.11
Previous process has disowned the lock due to abrupt termination.
Found existing cache lock file (ACQUIRED_PREVIOUS_OWNER_DISOWNED), rebuilding loom cache. This may have been caused by a failed or canceled build.
Not publishing sources jar as it was not found. Use java.withSourcesJar() to fix.
The build scan was not published due to a configuration problem.
The Gradle Terms of Service have not been agreed to.
For more information, please see https://gradle.com/help/plugin-terms-of-service.
Alternatively, if you are using Gradle Enterprise, specify the server location.
For more information, please see https://gradle.com/help/plugin-enterprise-config.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':fabric'.
> Failed to notify project evaluation listener.
> Failed to setup Minecraft, java.lang.RuntimeException: Unexpected IllegalAccessException occurred (Gson 2.9.1). Certain ReflectionAccessFilter features require Java >= 9 to work correctly. If you are not using ReflectionAccessFilter, report this to the Gson maintainers.
> Cannot get MinecraftProvider before it has been setup
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
CONFIGURE FAILED in 1s
You most likely need to change your java version to 21, but the error is not very descriptive. But heads up, a 1.20.6 version is on its. JFYI, a simple version bump will not be sufficient this time around, as 1.20.6 contains several internal changes to the code.