Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot view 1.20.6 mappings #4069

Open
Anonymous941 opened this issue Dec 17, 2024 · 1 comment
Open

Cannot view 1.20.6 mappings #4069

Anonymous941 opened this issue Dec 17, 2024 · 1 comment

Comments

@Anonymous941
Copy link

When trying to view 1.20.6 mappings, I get an error when running gradle yarn:

Calculating task graph as no cached configuration is available for tasks: yarn

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache state could not be cached: field `__classpath__` of task `:mapIntermediaryJar` of type `net.fabricmc.filament.task.MapJarTask`: error writing value of type 'org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection'
> Could not resolve all files for configuration ':minecraftLibraries'.
   > Could not find lwjgl-freetype-3.3.3-natives-macos-patch.jar (org.lwjgl:lwjgl-freetype:3.3.3).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-macos-patch.jar

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 3s
4 actionable tasks: 4 executed
Configuration cache entry discarded due to serialization error.

This error is the same as SpongePowered/VanillaGradle#149, but it doesn't seem to be fixed with yarn

@Anonymous941
Copy link
Author

After driving myself nuts for hours, the fix is extremely simple: move the Mojang repo to the top

diff --git a/build.gradle b/build.gradle
index 8097a0f63..1403e8481 100644
--- a/build.gradle
+++ b/build.gradle
@@ -41,15 +41,15 @@ if (ENV.BRANCH_NAME) {
 }
 
 repositories {
+       maven {
+               name "Mojang"
+               url 'https://libraries.minecraft.net/'
+       }
        mavenCentral()
        maven {
                name "Fabric Repository"
                url 'https://maven.fabricmc.net'
        }
-       maven {
-               name "Mojang"
-               url 'https://libraries.minecraft.net/'
-       }
        mavenLocal()
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant