Gradle cannot find Shimmer dependencies
Daxanius opened this issue ยท 4 comments
I am trying to create a 1.20.x mod with Fabric and Shimmer as a dependency.
When I attempt to include Shimmer in my build.gradle file, no matter what 1.20.x version, it gradle always says it cannot find the following dependencies:
- MixinExtras 0.1.1
- Cloth Config Fabric 11.1.106
- Flywheel Fabric 1.20.1 0.6.9-1
- Modmenu 7.1.0
I'm not sure what's going wrong there, but I would like to be able to include Shimmer into my mod as a dependency.
Here's a complete log excluding personal information:
> Could not resolve all files for configuration ':modImplementation'.
> Could not find com.github.LlamaLad7:MixinExtras:0.1.1.
Searched in the following locations:
- https://maven.fabricmc.net/com/github/LlamaLad7/MixinExtras/0.1.1/MixinExtras-0.1.1.pom
- https://libraries.minecraft.net/com/github/LlamaLad7/MixinExtras/0.1.1/MixinExtras-0.1.1.pom
- https://libraries.minecraft.net/com/github/LlamaLad7/MixinExtras/0.1.1/MixinExtras-0.1.1.jar
- https://repo.maven.apache.org/maven2/com/github/LlamaLad7/MixinExtras/0.1.1/MixinExtras-0.1.1.pom
- https://maven.terraformersmc.com/releases/com/github/LlamaLad7/MixinExtras/0.1.1/MixinExtras-0.1.1.pom
- https://maven.firstdarkdev.xyz/snapshots/com/github/LlamaLad7/MixinExtras/0.1.1/MixinExtras-0.1.1.pom
Required by:
project : > com.lowdragmc.shimmer:Shimmer-fabric:1.20.1-0.2.3
> Could not find me.shedaniel.cloth:cloth-config-fabric:11.1.106.
Searched in the following locations:
- https://maven.fabricmc.net/me/shedaniel/cloth/cloth-config-fabric/11.1.106/cloth-config-fabric-11.1.106.pom
- https://libraries.minecraft.net/me/shedaniel/cloth/cloth-config-fabric/11.1.106/cloth-config-fabric-11.1.106.pom
- https://libraries.minecraft.net/me/shedaniel/cloth/cloth-config-fabric/11.1.106/cloth-config-fabric-11.1.106.jar
- https://repo.maven.apache.org/maven2/me/shedaniel/cloth/cloth-config-fabric/11.1.106/cloth-config-fabric-11.1.106.pom
- https://maven.terraformersmc.com/releases/me/shedaniel/cloth/cloth-config-fabric/11.1.106/cloth-config-fabric-11.1.106.pom
- https://maven.firstdarkdev.xyz/snapshots/me/shedaniel/cloth/cloth-config-fabric/11.1.106/cloth-config-fabric-11.1.106.pom
Required by:
project : > com.lowdragmc.shimmer:Shimmer-fabric:1.20.1-0.2.3
> Could not find com.jozufozu.flywheel:flywheel-fabric-1.20.1:0.6.9-1.
Searched in the following locations:
- https://maven.fabricmc.net/com/jozufozu/flywheel/flywheel-fabric-1.20.1/0.6.9-1/flywheel-fabric-1.20.1-0.6.9-1.pom
- https://libraries.minecraft.net/com/jozufozu/flywheel/flywheel-fabric-1.20.1/0.6.9-1/flywheel-fabric-1.20.1-0.6.9-1.pom
- https://libraries.minecraft.net/com/jozufozu/flywheel/flywheel-fabric-1.20.1/0.6.9-1/flywheel-fabric-1.20.1-0.6.9-1.jar
- https://repo.maven.apache.org/maven2/com/jozufozu/flywheel/flywheel-fabric-1.20.1/0.6.9-1/flywheel-fabric-1.20.1-0.6.9-1.pom
- https://maven.terraformersmc.com/releases/com/jozufozu/flywheel/flywheel-fabric-1.20.1/0.6.9-1/flywheel-fabric-1.20.1-0.6.9-1.pom
- https://maven.firstdarkdev.xyz/snapshots/com/jozufozu/flywheel/flywheel-fabric-1.20.1/0.6.9-1/flywheel-fabric-1.20.1-0.6.9-1.pom
Required by:
project : > com.lowdragmc.shimmer:Shimmer-fabric:1.20.1-0.2.3
> Could not find maven.modrinth:modmenu:7.1.0.
Searched in the following locations:
- https://maven.fabricmc.net/maven/modrinth/modmenu/7.1.0/modmenu-7.1.0.pom
- https://libraries.minecraft.net/maven/modrinth/modmenu/7.1.0/modmenu-7.1.0.pom
- https://libraries.minecraft.net/maven/modrinth/modmenu/7.1.0/modmenu-7.1.0.jar
- https://repo.maven.apache.org/maven2/maven/modrinth/modmenu/7.1.0/modmenu-7.1.0.pom
- https://maven.terraformersmc.com/releases/maven/modrinth/modmenu/7.1.0/modmenu-7.1.0.pom
- https://maven.firstdarkdev.xyz/snapshots/maven/modrinth/modmenu/7.1.0/modmenu-7.1.0.pom
Required by:
project : > com.lowdragmc.shimmer:Shimmer-fabric:1.20.1-0.2.3
Here's what the important bit of my build.gradle looks like:
repositories {
maven { url "https://maven.terraformersmc.com/releases" }
maven { url "https://maven.firstdarkdev.xyz/snapshots" }
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}"
modImplementation "com.lowdragmc.shimmer:Shimmer-fabric:${shimmer_version}"
}
And my properties contains this:
# Dependencies
fabric_version=0.91.0+1.20.1
modmenu_version=7.1.0
shimmer_version=1.20.1-0.2.3
I tried a lot of version configurations but all of them seem to be having this issue.
Also in your README it states note the version like ${minecraft_version}:${shimmer_version}
, while it's actually ${minecraft_version}-${shimmer_version}
.
Either your documentation is stating false / outdated information and I am doing something wrong, or there is something wrong with your repository configuration.
it should work imo.
try this one?
modImplementation("com.lowdragmc.shimmer:Shimmer-fabric:${shimmer_version}") { transitive = false }
include("com.lowdragmc.shimmer:Shimmer-fabric:${shimmer_version}")
besides, I don't recommend including shimmer as a jar in jar, as shimmer is unstable and prone to conflict with rendering related mods, although we have been actively fixing compatibility issues
it should work imo. try this one?
modImplementation("com.lowdragmc.shimmer:Shimmer-fabric:${shimmer_version}") { transitive = false } include("com.lowdragmc.shimmer:Shimmer-fabric:${shimmer_version}")
Problem still persists for me even after applying these two lines in build.gradle:
A problem occurred configuring root project 'end-mod'.
> Could not resolve all files for configuration ':modImplementation'.
> Could not find com.lowdragmc.shimmer:Shimmer-fabric:0.2.3.
Searched in the following locations:
- file:/Users/{user}/Desktop/Code/java/end-mod/.gradle/loom-cache/remapped_mods/com/lowdragmc/shimmer/Shimmer-fabric/0.2.3/Shimmer-fabric-0.2.3.pom
- file:/Users/{user}/.gradle/caches/fabric-loom/minecraftMaven/com/lowdragmc/shimmer/Shimmer-fabric/0.2.3/Shimmer-fabric-0.2.3.pom
- file:/Users/{user}/Desktop/Code/java/end-mod/.gradle/loom-cache/minecraftMaven/com/lowdragmc/shimmer/Shimmer-fabric/0.2.3/Shimmer-fabric-0.2.3.pom
- https://maven.fabricmc.net/com/lowdragmc/shimmer/Shimmer-fabric/0.2.3/Shimmer-fabric-0.2.3.pom
- https://libraries.minecraft.net/com/lowdragmc/shimmer/Shimmer-fabric/0.2.3/Shimmer-fabric-0.2.3.pom
- https://libraries.minecraft.net/com/lowdragmc/shimmer/Shimmer-fabric/0.2.3/Shimmer-fabric-0.2.3.jar
- https://repo.maven.apache.org/maven2/com/lowdragmc/shimmer/Shimmer-fabric/0.2.3/Shimmer-fabric-0.2.3.pom
- https://maven.firstdarkdev.xyz/snapshots/com/lowdragmc/shimmer/Shimmer-fabric/0.2.3/Shimmer-fabric-0.2.3.pom
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html