mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Improve testability by adding more versions of runPaper to the build scripts (#2172)
* Improve testability * Change to import
This commit is contained in:
parent
b42f6a2f5e
commit
2b51896a01
@ -1,8 +1,9 @@
|
|||||||
import org.ajoberstar.grgit.Grgit
|
import org.ajoberstar.grgit.Grgit
|
||||||
import java.time.format.DateTimeFormatter
|
|
||||||
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
|
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
|
||||||
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
|
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
|
||||||
import java.net.URI
|
import java.net.URI
|
||||||
|
import java.time.format.DateTimeFormatter
|
||||||
|
import xyz.jpenilla.runpaper.task.RunServer
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
|
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
|
||||||
@ -82,8 +83,19 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
applyCommonConfiguration()
|
applyCommonConfiguration()
|
||||||
|
val supportedVersions = listOf("1.16.5", "1.17", "1.17.1", "1.18.2", "1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4")
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
supportedVersions.forEach {
|
||||||
|
register<RunServer>("runServer-$it") {
|
||||||
|
minecraftVersion(it)
|
||||||
|
pluginJars(*project(":worldedit-bukkit").getTasksByName("shadowJar", false).map { (it as Jar).archiveFile }
|
||||||
|
.toTypedArray())
|
||||||
|
jvmArgs("-DPaper.IgnoreJavaVersion=true", "-Dcom.mojang.eula.agree=true")
|
||||||
|
group = "run paper"
|
||||||
|
runDirectory.set(file("run-$it"))
|
||||||
|
}
|
||||||
|
}
|
||||||
runServer {
|
runServer {
|
||||||
minecraftVersion("1.19.3")
|
minecraftVersion("1.19.3")
|
||||||
pluginJars(*project(":worldedit-bukkit").getTasksByName("shadowJar", false).map { (it as Jar).archiveFile }
|
pluginJars(*project(":worldedit-bukkit").getTasksByName("shadowJar", false).map { (it as Jar).archiveFile }
|
||||||
|
Loading…
Reference in New Issue
Block a user