build.gradle.kts
plugins {
id("fabric-loom")
id("com.gradleup.shadow") version "9.0.0-beta12"
}
group = "com.nikoverflow.overflowclient"
version = project.property("client_version")!!
dependencies {
minecraft("com.mojang:minecraft:${project.property("minecraft_version")}")
mappings("net.fabricmc:yarn:${project.property("yarn_mappings")}")
modImplementation("net.fabricmc:fabric-loader:${project.property("loader_version")}")
shadow(implementation(project(":OverflowClient-API"))!!)
}
tasks.processResources {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand("version" to inputs.properties["version"])
}
}
tasks.shadowJar {
from(sourceSets["main"].output)
configurations = listOf(project.configurations.getByName("shadow"))
minimize()
}
tasks.remapJar {
dependsOn(tasks.shadowJar)
mustRunAfter(tasks.shadowJar)
inputFile.set(project.file(tasks.shadowJar.get().archiveFile.get().asFile))
}
The whole net.fabricmc, ui.icon and other things is also shaded into the jar file that doesn't seem right.. What would be the intended way to fix it? Someone told me that i should create a thread and not write it in mod-dev-...