StellarWind22 / Fabric-Shield-Lib

Library for easily adding new shields, shield enchantments, and enabling you to enchant shields in general without worry of conflictions.
https://www.curseforge.com/minecraft/mc-mods/fabric-shield-lib
GNU Lesser General Public License v2.1
40 stars 19 forks source link

1.5.3 gradle import not working #83

Closed vicen621 closed 1 year ago

vicen621 commented 2 years ago

When I import the library using gradle and reload the project this error appears and gradle does not recognize the library

A problem occurred configuring root project 'ShieldTest'.
> Could not resolve all dependencies for configuration ':modImplementation'.
   > Could not find me.shedaniel.cloth:cloth-config-fabric:6.2.57.
     Searched in the following locations:
       - file:/C:/Users/user/OneDrive/Documentos/Code/FabricMods/ShieldTest/.gradle/loom-cache/remapped_mods/me/shedaniel/cloth/cloth-config-fabric/6.2.57/cloth-config-fabric-6.2.57.pom
       - https://maven.fabricmc.net/me/shedaniel/cloth/cloth-config-fabric/6.2.57/cloth-config-fabric-6.2.57.pom
       - https://libraries.minecraft.net/me/shedaniel/cloth/cloth-config-fabric/6.2.57/cloth-config-fabric-6.2.57.pom
       - https://libraries.minecraft.net/me/shedaniel/cloth/cloth-config-fabric/6.2.57/cloth-config-fabric-6.2.57.jar
       - https://repo.maven.apache.org/maven2/me/shedaniel/cloth/cloth-config-fabric/6.2.57/cloth-config-fabric-6.2.57.pom
       - file:/C:/Users/user/.gradle/caches/fabric-loom/6.2.57/cloth-config-fabric.jar
       - file:/C:/Users/user/OneDrive/Documentos/Code/FabricMods/ShieldTest/.gradle/loom-cache/6.2.57/cloth-config-fabric.jar
       - https://jitpack.io/me/shedaniel/cloth/cloth-config-fabric/6.2.57/cloth-config-fabric-6.2.57.pom
     Required by:
         project : > com.github.CrimsonDawn45:Fabric-Shield-Lib:v1.5.3-1.18
   > Could not find com.terraformersmc:modmenu:3.0.1.
     Searched in the following locations:
       - file:/C:/Users/user/OneDrive/Documentos/Code/FabricMods/ShieldTest/.gradle/loom-cache/remapped_mods/com/terraformersmc/modmenu/3.0.1/modmenu-3.0.1.pom
       - https://maven.fabricmc.net/com/terraformersmc/modmenu/3.0.1/modmenu-3.0.1.pom
       - https://libraries.minecraft.net/com/terraformersmc/modmenu/3.0.1/modmenu-3.0.1.pom
       - https://libraries.minecraft.net/com/terraformersmc/modmenu/3.0.1/modmenu-3.0.1.jar
       - https://repo.maven.apache.org/maven2/com/terraformersmc/modmenu/3.0.1/modmenu-3.0.1.pom
       - file:/C:/Users/user/.gradle/caches/fabric-loom/3.0.1/modmenu.jar
       - file:/C:/Users/user/OneDrive/Documentos/Code/FabricMods/ShieldTest/.gradle/loom-cache/3.0.1/modmenu.jar
       - https://jitpack.io/com/terraformersmc/modmenu/3.0.1/modmenu-3.0.1.pom
     Required by:
         project : > com.github.CrimsonDawn45:Fabric-Shield-Lib:v1.5.3-1.18
StellarWind22 commented 2 years ago

Above your dependencies maybe try adding maven { url = "https://maven.shedaniel.me/" } and maven { url = "https://maven.terraformersmc.com/" }

Like this:

repositories {
    maven { url = "https://maven.shedaniel.me/" }           //Cloth
    maven { url = "https://maven.terraformersmc.com/" }     //Modmenu
}

Because in your error it looks like it isn't grabbing the libraries from the correct locations for some reason. They should just be included in the library file, but I'm not sure what the issue is. It also might just be that your mod needs updated to a newer version of Gradle & needs any cached build files deleted.

ethan629 commented 2 years ago

i did everything but i got this message Caused by: java.lang.RuntimeException: Invalid module: private static transient int[] me.shedaniel.autoconfig.example.ExampleConfig.__$lineHits$__

CringeStar commented 2 years ago

should merge with issue #93

StellarWind22 commented 2 years ago

Whenever 1.6 is backported this issue might disappear until then I'll just keep this issue open.