AppleSkin icon indicating copy to clipboard operation
AppleSkin copied to clipboard

[1.21.3-fabric] [README.md] modRuntime in the dependency section is invalid

Open pog5 opened this issue 9 months ago • 4 comments

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'
    }
}

pog5 avatar Mar 24 '25 10:03 pog5

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.

squeek502 avatar Mar 24 '25 10:03 squeek502

Thank you, do you know what's the difference between those two, and between them and modImplementation?

pog5 avatar Mar 24 '25 10:03 pog5

Nope, it's been a while since I looked at this stuff. Will try to figure that out and update the instructions as needed.

squeek502 avatar Mar 24 '25 17:03 squeek502

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 :)

pog5 avatar Mar 24 '25 22:03 pog5

https://docs.architectury.dev/plugin/gradle_configurations

Fuzss avatar Jun 05 '25 07:06 Fuzss

Thanks, updated all the relevant branches to suggest modLocalRuntime instead of the deprecated/removed modRuntime

squeek502 avatar Jun 05 '25 08:06 squeek502