Cannot add multiconnect to build.gradle
xgraza opened this issue ยท 4 comments
Hello, I cannot seem to add multiconnect to my build.gradle as it cannot fetch your custom version of the fabric loader. Exceptions and related files below: (im also using version 1.5.10 for fabric 1.18.1)
I have mavenCentral added to my build.gradle, and I tried added jcenter just in case it was an error on my part.
I'm not sure if it's just me being stupid, or something is wrong. I don't know if anyone else is having this issue, or if it's just me.
Exception:
A problem occurred configuring root project 'saturn-client'.
> Could not resolve all dependencies for configuration ':modImplementation'.
> Could not find null:unspecified:null.
Searched in the following locations:
- file:/C:/Users/aesthetical/Documents/Minecraft/Clients/saturn-client/.gradle/loom-cache/remapped_mods/null/unspecified/null/unspecified-null.pom
- https://maven.fabricmc.net/null/unspecified/null/unspecified-null.pom
- https://libraries.minecraft.net/null/unspecified/null/unspecified-null.pom
- https://libraries.minecraft.net/null/unspecified/null/unspecified-null.jar
- https://repo.maven.apache.org/maven2/null/unspecified/null/unspecified-null.pom
- file:/C:/Users/aesthetical/.gradle/caches/fabric-loom/null/unspecified.jar
- file:/C:/Users/aesthetical/Documents/Minecraft/Clients/saturn-client/.gradle/loom-cache/null/unspecified.jar
- https://maven.meteordev.org/snapshots/null/unspecified/null/unspecified-null.pom
- https://jcenter.bintray.com/null/unspecified/null/unspecified-null.pom
- file:/C:/Users/aesthetical/Documents/Minecraft/Clients/saturn-client/libs/unspecified-null.jar
- file:/C:/Users/aesthetical/Documents/Minecraft/Clients/saturn-client/libs/unspecified.jar
Required by:
project : > net.earthcomputer.multiconnect:multiconnect-api:1.5.10
> Could not find com.github.Earthcomputer:fabric-loader:48076922.
Searched in the following locations:
- file:/C:/Users/aesthetical/Documents/Minecraft/Clients/saturn-client/.gradle/loom-cache/remapped_mods/com/github/Earthcomputer/fabric-loader/48076922/fabric-loader-48076922.pom
- https://maven.fabricmc.net/com/github/Earthcomputer/fabric-loader/48076922/fabric-loader-48076922.pom
- https://libraries.minecraft.net/com/github/Earthcomputer/fabric-loader/48076922/fabric-loader-48076922.pom
- https://libraries.minecraft.net/com/github/Earthcomputer/fabric-loader/48076922/fabric-loader-48076922.jar
- https://repo.maven.apache.org/maven2/com/github/Earthcomputer/fabric-loader/48076922/fabric-loader-48076922.pom
- file:/C:/Users/aesthetical/.gradle/caches/fabric-loom/48076922/fabric-loader.jar
- file:/C:/Users/aesthetical/Documents/Minecraft/Clients/saturn-client/.gradle/loom-cache/48076922/fabric-loader.jar
- https://maven.meteordev.org/snapshots/com/github/Earthcomputer/fabric-loader/48076922/fabric-loader-48076922.pom
- https://jcenter.bintray.com/com/github/Earthcomputer/fabric-loader/48076922/fabric-loader-48076922.pom
- file:/C:/Users/aesthetical/Documents/Minecraft/Clients/saturn-client/libs/fabric-loader-48076922.jar
- file:/C:/Users/aesthetical/Documents/Minecraft/Clients/saturn-client/libs/fabric-loader.jar
Required by:
project : > net.earthcomputer.multiconnect:multiconnect-api:1.5.10
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
build.gradle:
// add multiconnect (connects to older versions of minecraft)
modImplementation "net.earthcomputer.multiconnect:multiconnect-api:${project.multiconnect_version}"
modRuntimeOnly "net.earthcomputer.multiconnect:multiconnect-slim:${project.multiconnect_version}"
dep "net.earthcomputer.multiconnect:multiconnect-api:${project.multiconnect_version}"
gradle.properties:
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.18.1
yarn_mappings=1.18.1+build.22
loader_version=0.13.2
# Mod Properties
mod_version = 1.0
maven_group = cope.saturn
archives_base_name = saturn
# Libraries
baritone_version = 1.18-SNAPSHOT
multiconnect_version = 1.5.10
Interesting, I also noticed when adding my built jar to the mods folder and running the Fabric loader, it would not log anything about multiconnect adding mixins, nor would it show up on the Multiplayer gui screen where it was supposed to be.
However, it tells me that along with my baritone modImplmenentation, multiconnect also added (via saturn), yet nothing was apparent that multiconnect was even present other than that one log.
Baritone works fine, so is this an artifact of this bug as well, or is that a me problem?
Edit: i recall i had to edit out adding the multiconnect-api at modRuntimeOnly because it also wouldnt resolve. I tried the above solution and it wouldnt work either, i tried modRuntimeOnlyMapped and that logged it loading the mixins in the dev env, but that's all I ever got close to multiconnect working with 1.18.1
try doing it like
modImplementation('net.earthcomputer.multiconnect:multiconnect-api:1.5.10') {
transitive = false
}