Earthcomputer / jarmod-buildsystem-2

Buildsystem for Minecraft 1.13+ Jar Mods built on top of ForgeGradle 3.0
MIT License
13 stars 7 forks source link

"Could not resolve all files for configuration ':tinkering:compileClasspath'" when running client. #9

Closed HoosierTransfer closed 1 year ago

HoosierTransfer commented 1 year ago

I have followed all the instructions to set it up but when I run gradlew runClient I get that error. Also when I run it in eclipse a bunch of imports aren't resolved.


FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':tinkering:compileClasspath'.
> Could not find patchy.jar (com.mojang:patchy:1.3.9).
  Searched in the following locations:
      https://files.minecraftforge.net/maven/com/mojang/patchy/1.3.9/patchy-1.3.9.jar
> Could not find oshi-core.jar (oshi-project:oshi-core:1.1).
  Searched in the following locations:
      https://files.minecraftforge.net/maven/oshi-project/oshi-core/1.1/oshi-core-1.1.jar
> Could not find javabridge.jar (com.mojang:javabridge:1.0.22).
  Searched in the following locations:
      https://files.minecraftforge.net/maven/com/mojang/javabridge/1.0.22/javabridge-1.0.22.jar
> Could not find brigadier.jar (com.mojang:brigadier:1.0.17).
  Searched in the following locations:
      https://files.minecraftforge.net/maven/com/mojang/brigadier/1.0.17/brigadier-1.0.17.jar
> Could not find datafixerupper.jar (com.mojang:datafixerupper:4.0.26).
  Searched in the following locations:
      https://files.minecraftforge.net/maven/com/mojang/datafixerupper/4.0.26/datafixerupper-4.0.26.jar
> Could not find authlib.jar (com.mojang:authlib:2.1.28).
  Searched in the following locations:
      https://files.minecraftforge.net/maven/com/mojang/authlib/2.1.28/authlib-2.1.28.jar
> Could not find text2speech.jar (com.mojang:text2speech:1.11.3).
  Searched in the following locations:
      https://files.minecraftforge.net/maven/com/mojang/text2speech/1.11.3/text2speech-1.11.3.jar
> Could not find text2speech-natives-windows.jar (com.mojang:text2speech:1.11.3).
  Searched in the following locations:
      https://files.minecraftforge.net/maven/com/mojang/text2speech/1.11.3/text2speech-1.11.3-natives-windows.jar```
HoosierTransfer commented 1 year ago

fixed it. i had to add

allprojects {
        repositories {
        mavenLocal()
            maven { 
                url 'https://libraries.minecraft.net/' 
        }

        maven { url 'https://files.minecraftforge.net/maven' }
        jcenter()
        //mavenCentral() //TODO: Update Gradle to use HTTPS by default
        maven {
            name 'maven_central'
            url 'https://repo.maven.apache.org/maven2/'
        }
    }
}

to the top of the build.gradle