question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

modCompile does not add to compile

See original GitHub issue

output of dependencies: https://gist.github.com/NikkyAI/5d209104e3b2883322082a4f497d918b

with these dependnecies:

dependencies {
    minecraft(group = "com.mojang", name = "minecraft", version = Minecraft.version)

    mappings(group = "net.fabricmc", name = "yarn", version = "${Minecraft.version}.${Fabric.Yarn.version}")

    modCompile(group = "net.fabricmc", name = "fabric-loader", version = Fabric.version)

    modCompile(group = "net.fabricmc", name = "fabric-language-kotlin", version = Fabric.LanguageKotlin.version)

    modCompile(group = "net.fabricmc", name = "fabric", version = Fabric.FabricAPI.version + ".+")

    api(
        group = "org.jetbrains.kotlinx",
        name = "kotlinx-serialization-runtime",
        version = KotlinX.Serialization.version
    )
    shadow(
        group = "org.jetbrains.kotlinx",
        name = "kotlinx-serialization-runtime",
        version = KotlinX.Serialization.version
    ) {
        isTransitive = false
    }

    api(group = "com.github.kittinunf.Fuel", name = "fuel", version = Fuel.version)
    shadow(group = "com.github.kittinunf.Fuel", name = "fuel", version = Fuel.version) {
        isTransitive = false
    }
    api(group = "com.github.kittinunf.Fuel", name = "fuel-coroutines", version = Fuel.version)
    shadow(group = "com.github.kittinunf.Fuel", name = "fuel-coroutines", version = Fuel.version) {
        isTransitive = false
    }
    api(group = "com.github.kittinunf.Fuel", name = "fuel-kotlinx-serialization", version = Fuel.version)
    shadow(group = "com.github.kittinunf.Fuel", name = "fuel-kotlinx-serialization", version = Fuel.version) {
        isTransitive = false
    }

    api(group = "com.github.kittinunf.result", name = "result", version = "2.0.0")
    shadow(group = "com.github.kittinunf.result", name = "result", version = "2.0.0") {
        isTransitive = false
    }

    api(group = "blue.endless", name = "jankson", version = "1.0.0-7")
    shadow(group = "blue.endless", name = "jankson", version = "1.0.0-7") {
        isTransitive = false
    }
}

fabric-language-kotlin does not even appear in the dependnecies list ? there is no modCompile section at all (i remember there was one before)

furthermore there seems to be no good way for me to look at which dependnecies fabric-language-kotlin bundles and exclude them from shadowjar (even if i add it to runtimeOnly)

probably related to #32

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
NikkyAIcommented, Dec 18, 2018
configurations.runtimeOnly.extendsFrom(configurations.modCompile)

this works well for me

what would be the difference between api and implementation for mods ? its not like mod dependencies are like normal dependencies…

1reaction
NikkyAIcommented, Dec 17, 2018

another problem is that it should be api in the first place, so if that could be fixed while it gets changed that would be nice

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I fix this "ModCompile folder mismatch"? - Reddit
r/terrariamods - How can I fix this "ModCompile folder mismatch"?
Read more >
tModLoader - Error (Can't compile mod) | Page 2
help! i'm making a mod and i put my texture in and tried to open the terraria mod and it said. Items/BasicKnife at...
Read more >
c# Mod compile error (tModLoader) - Stack Overflow
You need to put this in place of the custom items, but not the vanilla ones. It should look like so: ModRecipe recipe...
Read more >
If a Mod Says "Error" Read This :: People Playground General ...
(Oh Yeah Uh Restart People Playground after You Disable It and The Mod Will Compile as Normal Most of The Time.
Read more >
[Solved]-c# Mod compile error (tModLoader) - appsloveworld
You need to put this in place of the custom items, but not the vanilla ones. It should look like so: ModRecipe recipe...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found