Hello, I want to change some things about a specific mod.
I made some small mods for myself before, but I don't know how to use other mods as a dependencie and add the repositories.
My build.gradle file looks something like this:
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
implementation fg.deobf("libs:create-1.20.1:0.5.1.f")
implementation fg.deobf("libs:create-stuff-additions1.20.1:2.0.4a")
}
I have the folder libs in my root folder. If I start the gradlew.exe, I get the following output:
> Configure project :
Java: 17.0.15, JVM: 17.0.15+6 (Eclipse Adoptium), Arch: amd64
files(...) dependencies are not deobfuscated. Use a flatDir repository instead: https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver
Cannot deobfuscate dependency of type DefaultSelfResolvingDependency_Decorated, using obfuscated version!
files(...) dependencies are not deobfuscated. Use a flatDir repository instead: https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver
Cannot deobfuscate dependency of type DefaultSelfResolvingDependency_Decorated, using obfuscated version!
I don't know why this warning occurs or how to fix it.
If I try to build the whole thing, I get the same message, but this time as an error and the build process crashes.
I looked at the gradle dependencies website (https://docs.gradle.org/current/userguide/dependency_management_for_java_projects.html), but everything I tried did not work.
I use the Minecaft version 1.20.1 and the Forge version 47.2.17. Both mods don't have other dependencies and work perfectly fine if I start the game normaly.
Can someone explain to me why it does not work and/or where I can get help? Something like a documentation would be enough.