LoomProductionEnv
requires gradle 5.+ (apparently?)
task multimc
sets up a new instance in multimc, installs fabric and copies your mod and dependencies over
TODO: task server
creates a dedicated server, installs fabric and mods and starts it
on windows make sure that the multimc
folder is added to PATH
environment variable
make sure to apply it after fabric-loom
build.gradle.kts
plugins {
id("moe.nikky.loom-production-env") version "0.0.1-SNAPSHOT"
}
build.gradle
plugins {
id 'moe.nikky.loom-production-env' version '0.0.1-SNAPSHOT'
}
the production environments can be configured using the multimc
extension
production {
mainjar = file(...)
multimc { ... }
server { ... }
}
var mainJar: File = remapjar.ouput // expects a `File` pointing the the remapped jar
var instanceId: String
var instanceName: String
var configurations: MutableList<Configuration> // configurations that will copy dependencies into the multimc instance
var workingDirectory: File
var Xmx: String // example: 4048M
var gui: Boolean
var extraArguments: MutableList<String> // extra server launch arguments
var configurations: MutableList<Configuration> // configurations that will copy dependencies into the multimc instance
adding dependencies to multimcMod
will copy them into the instances mods folder
dependencies {
//...
multimc("io.github.prospector.modmenu:ModMenu:+")
server("group:artifactID:version")
}