From dc77ce9331fea6c1d5c12349bba11faae3217d2a 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 | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index b4bfcec40..40c492f1c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -84,7 +84,7 @@ allprojects { applyCommonConfiguration() val supportedVersions = listOf("1.17.1", "1.18.2", "1.19.4", "1.20", "1.20.2") - +val foliaSupportedVersions = listOf("1.19.4", "1.20.1", "1.20.2") tasks { supportedVersions.forEach { register("runServer-$it") { @@ -102,14 +102,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 {