Improve Server starter 'steamwar.devserver.gradle'

See build.gradle.kts of BauSystem
This commit is contained in:
2025-04-17 09:56:41 +02:00
parent 230ac09b61
commit 50543ddd4e
2 changed files with 132 additions and 0 deletions
+21
View File
@@ -1,3 +1,5 @@
import DevServer
/*
* This file is a part of the SteamWar software.
*
@@ -20,6 +22,7 @@
plugins {
`java-library`
alias(libs.plugins.shadow)
steamwar.devserver
}
tasks.build {
@@ -34,3 +37,21 @@ dependencies {
implementation(project(":BauSystem:BauSystem_20"))
implementation(project(":BauSystem:BauSystem_21"))
}
tasks.register<DevServer>("DevBau20") {
group = "run"
description = "Run a 1.20 Dev Bau"
dependsOn(":SpigotCore:shadowJar")
dependsOn(":BauSystem:shadowJar")
worldName = "245"
template = "Bau20"
}
tasks.register<DevServer>("DevBau21") {
group = "run"
description = "Run a 1.21 Dev Bau"
dependsOn(":SpigotCore:shadowJar")
dependsOn(":BauSystem:shadowJar")
worldName = "245"
template = "Bau21"
}