From 82f3cea32bad5f78600bcbf5bb72e5e1fae8f319 Mon Sep 17 00:00:00 2001
From: TheMeinerLP
Date: Sun, 18 Jun 2023 17:38:14 +0200
Subject: [PATCH] Add multi folia run task support
---
build.gradle.kts | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/build.gradle.kts b/build.gradle.kts
index acc3b6b37..23fea2d29 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -85,6 +85,7 @@ allprojects {
applyCommonConfiguration()
val supportedVersions = listOf("1.18.2", "1.19.4", "1.20", "1.20.4")
+val foliaSupportedVersions = listOf("1.19.4", "1.20.1")
tasks {
supportedVersions.forEach {
@@ -103,14 +104,17 @@ tasks {
.toTypedArray())
}
- register("runFolia") {
- downloadsApiService.set(xyz.jpenilla.runtask.service.DownloadsAPIService.folia(project))
- minecraftVersion("1.19.4")
- group = "run paper"
- runDirectory.set(file("run-folia"))
- pluginJars(*project(":worldedit-bukkit").getTasksByName("shadowJar", false).map { (it as Jar).archiveFile }
+ foliaSupportedVersions.forEach {
+ register("runFolia-$it") {
+ downloadsApiService.set(xyz.jpenilla.runtask.service.DownloadsAPIService.folia(project))
+ minecraftVersion(it)
+ group = "run paper"
+ runDirectory.set(file("run-folia-$it"))
+ pluginJars(*project(":worldedit-bukkit").getTasksByName("shadowJar", false).map { (it as Jar).archiveFile }
.toTypedArray())
+ }
}
+
}
nexusPublishing {