geforkt von Mirrors/FastAsyncWorldEdit
Improve testability by adding more versions of runPaper to the build scripts (#2172)
* Improve testability * Change to import
Dieser Commit ist enthalten in:
Ursprung
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 }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren