Exopandora / ShoulderSurfing

Shoulder Surfing Reloaded is a highly configurable third person camera mod for minecraft.
MIT License
48 stars 9 forks source link

Build failed when I tried to configure it for 1.20.6 support #185

Closed sdy623 closed 1 month ago

sdy623 commented 1 month ago

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
Exopandora commented 1 month ago

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.

Exopandora commented 1 month ago

A 1.20.6 (beta) version is now available.

sdy623 commented 1 month ago

Thank you very much, it works on 1.20.6, and because the release date of 1.20.6 is close to 24w18a, it works in 24w18a too, just edit the forgeconfig api port. 2024-05-09_11 45 27