add mod loaders to the merged jars

This commit is contained in:
James Seibel
2026-04-18 15:48:44 -05:00
parent 050d00b628
commit 54b0ccfce6
+20
View File
@@ -5,4 +5,24 @@ plugins {
forgix {
autoRun = true
// add the mod loaders to the end of the jar
// put together in the format: "a", "a-b", "a-b-c"
String modLoaders = "";
((String) gradle.builds_for)
.split(",")
.each
{ loader ->
def loaderName = loader.trim()
if (modLoaders != "")
{
modLoaders += "-";
}
modLoaders += loaderName;
}
// merged jars are named in the format:
// "DistantHorizons-3.0.1-b-dev-26.1-fabric-neoforge.jar"
archiveClassifier = modLoaders
}