[1.21.3-fabric] [README.md] modRuntime in the dependency section is invalid
In the development setup section of the README.md file, at the "if you want to test with the full AppleSkin mod in your development environment", the modRuntime gradle function/identifier is invalid.
Build log:
A problem occurred evaluating root project 'myownmod'.
> Could not find method modRuntime() for arguments [squeek.appleskin:appleskin-fabric:mc1.21.3-3.0.6:api, build_y2fype3k5fzulses8m5rv0gp$_run_closure4$_closure16@20c5a86f] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
build.gradle:
repositories {
maven { url = "https://maven.ryanliptak.com/" } // for appleskin
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// AppleSkin
// modImplementation "maven.modrinth:appleskin:3.0.6+mc1.21.3"
modRuntime("squeek.appleskin:appleskin-fabric:mc1.21.3-3.0.6:api") {
exclude module: 'modmenu'
}
}
Try modRuntimeOnly or modLocalRuntime
Also, you should not be including the :api specifier at the end for this. If you want to compile against the API, you should have a separate modCompileOnly for the api package.
Thank you, do you know what's the difference between those two, and between them and modImplementation?
Nope, it's been a while since I looked at this stuff. Will try to figure that out and update the instructions as needed.
I keep getting a NoClasDef error about AutoConf for shnedaniel's Cloth (assuming), using Modrinth's modImplementation works fine for now but it would be even better to have this fixed :)
https://docs.architectury.dev/plugin/gradle_configurations
Thanks, updated all the relevant branches to suggest modLocalRuntime instead of the deprecated/removed modRuntime