From d092e369e22a1e7af01ec1c8d02d256bc248f0ba Mon Sep 17 00:00:00 2001
From: Phillip Glanz
Date: Sun, 2 Apr 2023 17:33:50 +0200
Subject: [PATCH] Add run folia task
---
build.gradle.kts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/build.gradle.kts b/build.gradle.kts
index e441c1336..d2ba067f9 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,6 +1,7 @@
import org.ajoberstar.grgit.Grgit
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
+import xyz.jpenilla.runpaper.task.RunServer
import java.net.URI
import java.time.format.DateTimeFormatter
import xyz.jpenilla.runpaper.task.RunServer
@@ -102,6 +103,14 @@ tasks {
.toTypedArray())
}
+ register("runFolia") {
+ minecraftVersion("1.19.4")
+ group = "run paper"
+ serverJar(file("run-folia/folia-paperclip-1.19.4-R0.1-SNAPSHOT-reobf.jar"))
+ runDirectory.set(file("run-folia"))
+ pluginJars(*project(":worldedit-bukkit").getTasksByName("shadowJar", false).map { (it as Jar).archiveFile }
+ .toTypedArray())
+ }
}
nexusPublishing {