A trial to make a mod smaller
This creates a jar contains a lzma compressed non-compressing jar file and loader of the non-compressed jar mod.
import com.anatawa12.jarInJar.gradle.TargetPreset
plugins {
id("com.anatawa12.jarInJar") version "1.0.3"
}
tasks.embedJarInJar {
// choose one from two below by your mod's target forge version
target = TargetPreset.FMLInForge
target = TargetPreset.FMLInCpw
basePackage = "your.mod.package.name.jarInJar"
}
tasks.assemble {
dependsOn tasks.embedJarInJar
// or for kotlin
// dependsOn(tasks.embedJarInJar.get())
}
fixrtm-2.0.18 that was 5.34 MB is now 2.24 MB with this try.